修改
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 || {})
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user