Explorar o código

修复角色管理-编辑角色-功能权限显示异常

wanghuan %!s(int64=5) %!d(string=hai) anos
pai
achega
1804d4fce6
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      ruoyi-ui/src/views/system/role/index.vue

+ 6 - 1
ruoyi-ui/src/views/system/role/index.vue

@@ -513,7 +513,12 @@ export default {
513
         this.open = true;
513
         this.open = true;
514
         this.$nextTick(() => {
514
         this.$nextTick(() => {
515
           roleMenu.then(res => {
515
           roleMenu.then(res => {
516
-            this.$refs.menu.setCheckedKeys(res.checkedKeys);
516
+            let checkedKeys = res.checkedKeys
517
+            checkedKeys.forEach((v) => {
518
+                this.$nextTick(()=>{
519
+                    this.$refs.menu.setChecked(v, true ,false);
520
+                })
521
+            })
517
           });
522
           });
518
         });
523
         });
519
         this.title = "修改角色";
524
         this.title = "修改角色";