12345678910111213141516171819202122232425262728293031323334 |
- import { RouteRecordRaw } from "vue-router";
- const Layout = () => import("@/layout/index.vue");
- const constantRoutes: RouteRecordRaw[] = [
- {
- path: "/redirect",
- component: Layout,
- meta: { hidden: true },
- children: [
- {
- path: "/redirect/:path(.*)",
- component: () => import("@/views/redirect/index.vue"),
- },
- ],
- },
- {
- path: "/login",
- component: () => import("@/views/login/index.vue"),
- meta: { hidden: true },
- },
- {
- path: "/client-traceability/:id",
- component: () => import("@/views/traceability/index.vue"),
- name: "client-traceability",
- },
- {
- path: "/:pathMatch(.*)*", // 必备
- component: () => import("@/views/error-page/404.vue"),
- },
- ];
- export default constantRoutes;
|