You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
General-AI-Platform-Web-Client/mock/asyncRoutes.ts

44 lines
1.1 KiB
TypeScript

/*
* @Author: donghao donghao@supervision.ltd
* @Date: 2024-01-12 14:35:28
* @LastEditors: donghao donghao@supervision.ltd
* @LastEditTime: 2024-01-19 09:51:18
* @FilePath: \general-work-web\General-AI-Platform-Web-Client\mock\asyncRoutes.ts
* @Description: ,`customMade`, koroFileHeader : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
// 模拟后端动态生成路由
import { MockMethod } from "vite-plugin-mock";
// import { useI18n } from "vue-i18n";
// const { t } = useI18n();
/**
* roles "admin""common"
* admin
* common
*/
9 months ago
// const demoRouter = {
// path: "/demo/leftTree",
// name: "DemoLeftTree",
// meta: {
// showLink: false,
// title: "测试",
// icon: "",
// roles: ["admin", "common"],
// rank: 101
// }
// };
export default [
{
url: "/getAsyncRoutes",
method: "get",
response: () => {
return {
success: true,
9 months ago
data: []
};
}
}
] as MockMethod[];