mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(projects): 修复自定义数据权限没有保存角色部门bug
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
import { computed, reactive, ref, watch } from 'vue';
|
||||
import { useLoading } from '@sa/hooks';
|
||||
import { dataScopeOptions } from '@/constants/business';
|
||||
import { fetchGetRoleDeptTreeSelect, fetchUpdateRole } from '@/service/api/system/role';
|
||||
import { fetchGetRoleDeptTreeSelect, fetchUpdateRoleDataScope } from '@/service/api/system/role';
|
||||
import { useFormRules, useNaiveForm } from '@/hooks/common/form';
|
||||
import { $t } from '@/locales';
|
||||
import DeptTree from '@/components/custom/dept-tree.vue';
|
||||
@ -86,7 +86,7 @@ async function handleSubmit() {
|
||||
|
||||
const { roleId, roleName, roleKey, roleSort, dataScope, deptIds, menuIds } = model;
|
||||
|
||||
const { error } = await fetchUpdateRole({
|
||||
const { error } = await fetchUpdateRoleDataScope({
|
||||
roleId,
|
||||
roleName,
|
||||
roleKey,
|
||||
|
Reference in New Issue
Block a user