refactor: 重构重置路由功能

This commit is contained in:
xiaoxian521
2022-08-18 18:34:53 +08:00
parent 5ac646444f
commit d6a329a63c
5 changed files with 40 additions and 16 deletions

View File

@@ -1,5 +1,10 @@
import { http } from "../utils/http";
export const getAsyncRoutes = (params?: object) => {
return http.request("get", "/getAsyncRoutes", { params });
type Result = {
code: number;
info: Array<any>;
};
export const getAsyncRoutes = (params?: object) => {
return http.request<Result>("get", "/getAsyncRoutes", { params });
};