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

2
dist/index.html vendored
View File

@@ -8,6 +8,6 @@
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="/umi.fd6cf3e5.js"></script> <script src="/umi.1a876c48.js"></script>
</body></html> </body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -15,7 +15,7 @@ import UpdateForm from './edit';
const handleAdd = async (fields: API.System.Menu) => { const handleAdd = async (fields: API.System.Menu) => {
const hide = message.loading('正在添加'); const hide = message.loading('正在添加');
try { try {
await menuAdd({ ...fields }); await roleAdd({ ...fields });
hide(); hide();
message.success('添加成功'); message.success('添加成功');
return true; 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`, { return request(`/api/sys/role/add`, {
method: 'POST', method: 'POST',
params, data: body,
...(options || {}) ...(options || {})
}); });
} }