Files
ap_trade_frontend_manage/src/api/routes.ts
2024-12-25 16:07:51 +08:00

16 lines
447 B
TypeScript

import { http } from "@/utils/http";
// import { baseUrlApi } from "./utils";
import { authApi } from "./utils";
type Result = {
success: boolean;
data: Array<any>;
};
export const getAsyncRoutes = () => {
// return http.request<Result>("get", "/get-async-routes");
// 暂时返回空动态路由
// return http.request<Result>("get", baseUrlApi("auth/async-routes"));
return http.request<Result>("get", authApi("async-routes"));
};