Files
padui-home/src/routes/routes.ts
T
2023-04-14 01:07:19 +08:00

15 lines
1.1 KiB
TypeScript

const routes = [
{ path: "/", name: "root", redirect: "/home" },
{ path: "/home", name: "home", meta: { power: true }, component: () => import("../pages/Home.vue") },
{ path: "/loginfo", name: "loginfo", component: () => import("../pages/Login.vue") },
{ path: "/nonetwork:text?", name: "nonetwork", props: true, component: () => import("../pages/error/NoNetwork.vue") },
{ path: "/noaccess/:text?", name: "noaccess", props: true, component: () => import("../pages/error/NoAccess.vue") },
{ path: "/empty/:text?", name: "empty", props: true, component: () => import("../pages/error/NoData.vue") },
{ path: "/deviceabnormal/:text?", name: "deviceabnormal", props: true, component: () => import("../pages/error/DeviceAbnormal.vue") },
{ path: "/failed/:text?", name: "failed", props: true, component: () => import("../pages/error/Failed.vue") },
{ path: "/500/:text?", name: "500", props: true, component: () => import("../pages/error/500.vue") },
{ path: "/404", name: "404", component: () => import("../pages/error/404.vue") },
{ path: "/:catchAll(.*)", redirect: "/404", hidden: true }
];
export default routes;