feat: 模拟后台返回不同角色路由生成动态路由

This commit is contained in:
xiaoxian521
2021-05-27 23:36:46 +08:00
parent b554356ba1
commit 07aff1fcfc
22 changed files with 297 additions and 92 deletions

5
src/api/routes.ts Normal file
View File

@@ -0,0 +1,5 @@
import { http } from "../utils/http";
export const getAsyncRoutes = (data?: object): any => {
return http.request("get", "/getAsyncRoutes", data);
};