Bläddra i källkod

Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue

 Conflicts:
	ruoyi-ui/src/views/system/role/index.vue
疯狂的狮子li 4 år sedan
förälder
incheckning
6f0dfa850a
1 ändrade filer med 7 tillägg och 2 borttagningar
  1. 7 2
      ruoyi-ui/src/views/system/role/index.vue

+ 7 - 2
ruoyi-ui/src/views/system/role/index.vue

@@ -513,7 +513,12 @@ export default {
         this.open = true;
         this.$nextTick(() => {
           roleMenu.then(res => {
-            this.$refs.menu.setCheckedKeys(res.checkedKeys);
+            let checkedKeys = res.checkedKeys
+            checkedKeys.forEach((v) => {
+                this.$nextTick(()=>{
+                    this.$refs.menu.setChecked(v, true ,false);
+                })
+            })
           });
         });
         this.title = "修改角色";
@@ -596,4 +601,4 @@ export default {
     }
   }
 };
-</script>
+</script>