Commit f9ab7024 by 史敦盼

Merge branch 'sdp-v1'

2 parents 551b7378 9743fd6a
......@@ -345,11 +345,11 @@ export default {
this.graphGroup = res.data[0].viewId;
this.assetConstant = res.data[0].archiType;
this.treeData[0].subList = res.data;
this.currentNodekey = res.data[0].subList[0].viewId;
this.currentNodekey = res.data[0].subList[0]?.viewId;
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(this.currentNodekey);
});
this.viewId = res.data[0].subList[0].viewId;
this.viewId = res.data[0].subList[0]?.viewId;
this.pager.current = 1;
this.get_list();
}
......
......@@ -346,11 +346,11 @@ export default {
this.graphGroup = res.data[0].viewId;
this.archiType = res.data[0].archiType;
this.treeData[0].subList = res.data;
this.currentNodekey = res.data[0].subList[0].viewId;
this.currentNodekey = res.data[0].subList[0]?.viewId;
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(this.currentNodekey);
});
this.viewId = res.data[0].subList[0].viewId;
this.viewId = res.data[0].subList[0]?.viewId;
this.pager.current = 1;
this.get_list();
}
......
......@@ -358,11 +358,11 @@ export default {
this.graphGroup = res.data[0].viewId;
this.archiType = res.data[0].archiType;
this.treeData[0].subList = res.data;
this.currentNodekey = res.data[0].subList[0].viewId;
this.currentNodekey = res.data[0].subList[0]?.viewId;
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(this.currentNodekey);
});
this.viewId = res.data[0].subList[0].viewId;
this.viewId = res.data[0].subList[0]?.viewId;
this.pager.current = 1;
this.get_list();
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!