添加基本代码

main
roger_home_pc 1 year ago
parent 779b32d22f
commit 3cffe1c582
  1. 5
      src/router/index.js

@ -52,6 +52,11 @@ const routes = [
} }
]; ];
const route404 = {
path:" /:pathMatch(.*)*",
name: "404",
redirect: "/404"
}
const router = createRouter({history: createWebHashHistory(), routes}) const router = createRouter({history: createWebHashHistory(), routes})
router.beforeEach((to) => { router.beforeEach((to) => {

Loading…
Cancel
Save