mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-09 14:40:27 +08:00
69 lines
1.7 KiB
TypeScript
69 lines
1.7 KiB
TypeScript
import { $t } from "@/plugins/i18n";
|
||
const Layout = () => import("@/layout/index.vue");
|
||
|
||
export default [
|
||
{
|
||
path: "/login",
|
||
name: "Login",
|
||
component: () => import("@/views/login/index.vue"),
|
||
meta: {
|
||
title: $t("menus.pureLogin"),
|
||
showLink: false
|
||
}
|
||
},
|
||
// 全屏403(无权访问)页面
|
||
{
|
||
path: "/access-denied",
|
||
name: "AccessDenied",
|
||
component: () => import("@/views/error/403.vue"),
|
||
meta: {
|
||
title: $t("menus.pureAccessDenied"),
|
||
showLink: false
|
||
}
|
||
},
|
||
// 全屏500(服务器出错)页面
|
||
{
|
||
path: "/server-error",
|
||
name: "ServerError",
|
||
component: () => import("@/views/error/500.vue"),
|
||
meta: {
|
||
title: $t("menus.pureServerError"),
|
||
showLink: false
|
||
}
|
||
},
|
||
{
|
||
path: "/redirect",
|
||
component: Layout,
|
||
meta: {
|
||
title: $t("status.pureLoad"),
|
||
showLink: false
|
||
},
|
||
children: [
|
||
{
|
||
path: "/redirect/:path(.*)",
|
||
name: "Redirect",
|
||
component: () => import("@/layout/redirect.vue")
|
||
}
|
||
]
|
||
},
|
||
{
|
||
path: "/account-settings",
|
||
name: "AccountSettings",
|
||
component: () => import("@/views/account-settings/index.vue"),
|
||
meta: {
|
||
title: $t("buttons.pureAccountSettings"),
|
||
showLink: false
|
||
}
|
||
},
|
||
// 下面是一个无layout菜单的例子(一个全屏空白页面),因为这种情况极少发生,所以只需要在前端配置即可(配置路径:src/router/modules/remaining.ts)
|
||
{
|
||
path: "/empty",
|
||
name: "Empty",
|
||
component: () => import("@/views/empty/index.vue"),
|
||
meta: {
|
||
title: $t("menus.pureEmpty"),
|
||
showLink: false
|
||
}
|
||
}
|
||
] satisfies Array<RouteConfigsTable>;
|