路由配置优化及页面元信息添加
This commit is contained in:
@ -13,6 +13,11 @@ import { routes } from 'vue-router/auto-routes';
|
||||
// const Login = () => import("@/views/Login.vue");
|
||||
// const NotFound = () => import("@/views/NotFound.vue");
|
||||
|
||||
routes.unshift({
|
||||
path: "/",
|
||||
redirect: "/home",
|
||||
});
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes:routes as any
|
||||
|
||||
Reference in New Issue
Block a user