Commit d8e1d29b94c61b8adee85d7e2f502579ba8ba1ba
1 parent
accc35f3
fix:修改系统管理下的角色菜单分配-新增时菜单全部展开问题,应该只展开第一级即可和重复提交问题
Showing
1 changed file
with
5 additions
and
0 deletions
@@ -92,6 +92,11 @@ | @@ -92,6 +92,11 @@ | ||
92 | const menuListModel = await getMenuList(); | 92 | const menuListModel = await getMenuList(); |
93 | processChildren(menuListModel); | 93 | processChildren(menuListModel); |
94 | treeData.value = menuListModel; | 94 | treeData.value = menuListModel; |
95 | + //修复角色菜单新增-全部展开问题-只展开第一级即可 | ||
96 | + nextTick(() => { | ||
97 | + const getAllIds = lookForAllId(treeData.value, []); | ||
98 | + treeExpandData.value = getAllIds; | ||
99 | + }); | ||
95 | } | 100 | } |
96 | // 更新 | 101 | // 更新 |
97 | if (unref(isUpdate)) { | 102 | if (unref(isUpdate)) { |