Commit cc99bc04 authored by fit2-zhao's avatar fit2-zhao Committed by fit2-zhao
Browse files

fix(接口定义): 修复步骤中的结果显示错误

refactor: 优化项目创建相关代码
parent dfb00912
No related merge requests found
Showing with 2244 additions and 2246 deletions
+2244 -2246
...@@ -336,10 +336,10 @@ export default { ...@@ -336,10 +336,10 @@ export default {
if (this.node) { if (this.node) {
this.node.expanded = this.request.active; this.node.expanded = this.request.active;
} }
if (this.node.expanded && this.expandedNode.indexOf(this.request.resourceId) === -1) { if (this.node.expanded && this.expandedNode && this.expandedNode.indexOf(this.request.resourceId) === -1) {
this.expandedNode.push(this.request.resourceId); this.expandedNode.push(this.request.resourceId);
} else { } else {
if (this.expandedNode.indexOf(this.request.resourceId) !== -1) { if (this.expandedNode && this.expandedNode.indexOf(this.request.resourceId) !== -1) {
this.expandedNode.splice(this.expandedNode.indexOf(this.request.resourceId), 1); this.expandedNode.splice(this.expandedNode.indexOf(this.request.resourceId), 1);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment