Преглед на файлове

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('保存成功');