This commit is contained in:
2024-12-25 16:07:51 +08:00
parent e39ea741ea
commit 453208f593
28 changed files with 867 additions and 63 deletions

View File

@@ -1,5 +1,6 @@
import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";
// import { baseUrlApi } from "./utils";
import { authApi } from "./utils";
type Result = {
success: boolean;
@@ -9,5 +10,6 @@ type Result = {
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", baseUrlApi("auth/async-routes"));
return http.request<Result>("get", authApi("async-routes"));
};