浏览代码

树结构渲染修改

baiyanting 1 年之前
父节点
当前提交
cd98ceed0a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/IntegratedAlarm/deviceConfig/index.vue

+ 1 - 1
src/views/IntegratedAlarm/deviceConfig/index.vue

@@ -296,7 +296,7 @@ const saveTreeAdd = async () => {
 // getData
 const getData = async () => {
   const res = await tree();
-  state.treedata = res.children.reverse();
+  state.treedata = [res];
   state.cascaderdata = cascaderforEach(res);
 };