mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
17 lines
373 B
TypeScript
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");
|
|
};
|