refactor(projects): 精简版+动态路由权限初步

This commit is contained in:
Soybean
2022-01-03 22:20:10 +08:00
parent 7a0648dba5
commit de2057f141
354 changed files with 2053 additions and 22117 deletions

View File

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