修改乙方运维没有树节点时,页面加载狂不消失问题
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -62,7 +62,7 @@ export default { | @@ -62,7 +62,7 @@ export default { | ||
62 | username: localStorage.getItem("lgn"), | 62 | username: localStorage.getItem("lgn"), |
63 | }; | 63 | }; |
64 | proxy.$http.get("/api-web/bOpsProject/getTree", params, function (res) { | 64 | proxy.$http.get("/api-web/bOpsProject/getTree", params, function (res) { |
65 | - if (res && res.data) { | 65 | + if (res && res.data && res.data.length > 0) { |
66 | dataSource.value = res.data; | 66 | dataSource.value = res.data; |
67 | projectId.value = res.data[0].dataList[0].id; | 67 | projectId.value = res.data[0].dataList[0].id; |
68 | treeNode.value = res.data[0]; | 68 | treeNode.value = res.data[0]; |
-
Please register or login to post a comment