fix(projects): 修复自定义数据权限没有保存角色部门bug

This commit is contained in:
AN
2025-06-09 13:20:28 +08:00
parent 8bb31b1c36
commit a0f33664ec
2 changed files with 11 additions and 2 deletions

View File

@ -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,