Files
SOP/sop-admin/sop-admin-frontend/src/api/routes.ts
六如 f7f04c28eb 5.0
2024-12-19 18:05:59 +08:00

17 lines
373 B
TypeScript

import { createUrl, http } from "@/utils/http";
// 后端请求接口
const apiUrl: any = createUrl({
listMenu: "sys/userperm/listCurrentUserMenu"
});
type Result = {
success: boolean;
data: Array<any>;
};
export const getAsyncRoutes = () => {
return http.request<Result>("get", apiUrl.listMenu);
// return http.request<Result>("get", "/get-async-routes");
};