From bcd6f83fdcbd5caa250a01847fc691e71efbcfd8 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 21 二月 2024 16:17:27 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/system/user/index.jsx | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/zy-asrs-flow/src/pages/system/user/index.jsx b/zy-asrs-flow/src/pages/system/user/index.jsx
index 70fe28f..01fc646 100644
--- a/zy-asrs-flow/src/pages/system/user/index.jsx
+++ b/zy-asrs-flow/src/pages/system/user/index.jsx
@@ -129,7 +129,8 @@
Http.doPostPromise('/api/dept/tree', {}, (res) => {
const rootMenu = { id: 0, name: '鍏ㄩ儴', value: 0, children: [] };
rootMenu.children = res.data;
- const treeData = transformTreeData([rootMenu]);
+ // const treeData = transformTreeData([rootMenu]);
+ const treeData = transformTreeData(res.data);
setDeptTreeData(treeData);
const treeAllKeys = getTreeAllKeys(treeData);
setDeptExpandedKeys(treeAllKeys);
--
Gitblit v1.9.1