mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-24 13:30:19 +08:00
refactor(projects): 精简版+动态路由权限初步
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import type { MockMethod } from 'vite-plugin-mock';
|
||||
import type { BackendServiceResult } from '@/interface';
|
||||
|
||||
export default [
|
||||
const apis: MockMethod[] = [
|
||||
{
|
||||
url: '/api/getUser',
|
||||
url: '/mock/getUser',
|
||||
method: 'get',
|
||||
response: (): BackendServiceResult => {
|
||||
response: (): Service.BackendServiceResult => {
|
||||
return {
|
||||
code: 200,
|
||||
message: 'ok',
|
||||
@@ -13,4 +12,6 @@ export default [
|
||||
};
|
||||
}
|
||||
}
|
||||
] as MockMethod[];
|
||||
];
|
||||
|
||||
export default apis;
|
||||
|
||||
Reference in New Issue
Block a user