This commit is contained in:
PC-202306242200\Administrator
2024-09-12 09:49:28 +08:00
parent 9c3f140783
commit 577d6a5934
8 changed files with 8 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ import UpdateForm from './edit';
const handleAdd = async (fields: API.System.Menu) => {
const hide = message.loading('正在添加');
try {
await menuAdd({ ...fields });
await roleAdd({ ...fields });
hide();
message.success('添加成功');
return true;

View File

@@ -10,10 +10,10 @@ export function findAllSysRole(params?: any, options?: { [key: string]: any }) {
// 新增角色
export function roleAdd(params?: any, options?: { [key: string]: any }) {
export function roleAdd(body?: any, options?: { [key: string]: any }) {
return request(`/api/sys/role/add`, {
method: 'POST',
params,
data: body,
...(options || {})
});
}