|
@@ -39,7 +39,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
async getTreeData() {
|
|
async getTreeData() {
|
|
|
- this.requirements = this.addChild2Node(await RequirementAPI.getTreeNodesByProjectId(this.$store.state.workspace.currentProjectId));
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ this.requirements = this.addChild2Node(await RequirementAPI.getTreeNodesByProjectId(this.$store.state.workspace.currentProjectId));
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ console.error(e);
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
addChild2Node(array) {
|
|
addChild2Node(array) {
|
|
|
const nodeMap = new Map();
|
|
const nodeMap = new Map();
|