|
@@ -2,12 +2,12 @@ import { createRouter, createWebHistory } from "vue-router";
|
|
|
import store from "@/store";
|
|
|
|
|
|
const routes=[
|
|
|
- // {
|
|
|
- // path: "/",
|
|
|
- // name: "Layout",
|
|
|
- // redirect:'/activity/list',
|
|
|
- // component: ()=>import("@/layout/Index.vue"),
|
|
|
- // },
|
|
|
+ {
|
|
|
+ path: "/",
|
|
|
+ name: "Layout",
|
|
|
+ redirect:'/activity/list',
|
|
|
+ component: ()=>import("@/layout/Index.vue"),
|
|
|
+ },
|
|
|
|
|
|
{
|
|
|
path: "/activity",
|
|
@@ -94,6 +94,13 @@ const routes=[
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ path: '/:pathMatch(.*)',
|
|
|
+ name: 'error',
|
|
|
+ component: () => import("@/views/404.vue"),
|
|
|
+ meta: { title: '404' },
|
|
|
}
|
|
|
|
|
|
]
|