瀏覽代碼

fix(系统模块): 菜单保存优化

shizhongming 2 年之前
父節點
當前提交
6d50838eb6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/smart-system/views/role/components/RoleSetFunction.vue

+ 2 - 2
src/modules/smart-system/views/role/components/RoleSetFunction.vue

@@ -141,8 +141,8 @@
         url: 'sys/role/saveRoleMenu',
         data: {
           roleId: props.roleId,
-          functionIdList: tree.getCheckedKeys(),
-          halfFunctionIdList: tree.halfCheckedKeys,
+          functionIdList: tree.getAntInstance().checkedKeys,
+          halfFunctionIdList: tree.getAntInstance().halfCheckedKeys,
         },
       });
       successMessage('保存成功');