diff --git a/src/router/index.js b/src/router/index.js index 2767e29..66a2eff 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,7 +4,8 @@ const router = createRouter({ history: createWebHashHistory(), routes: [//此处在做登录之前做成默认跳转工作台 { path: '/workspace', name: "workspace", component: () => import("../views/workspace/index.vue") }, - { path: '/', redirect: "/workspace" }, + { path: '/', redirect: "/login-hxl" }, + {path: "/login-hxl",name: "login-hxl",component: () => import("../views/login-hxl.vue"),}, // { path: '/test', component: () => import("../views/z.vue") }, { meta: { requireAuth: true },