|
|
@@ -10,10 +10,7 @@ const store = createPinia()
|
|
|
|
|
|
// 动态路由
|
|
|
const routes = Object.values(import.meta.glob('./views/*/route.ts', { eager: true, import: 'default' })) as unknown as RouteRecordRaw[]
|
|
|
-routes.push(
|
|
|
- { path: '/login', component: () => import('./login/index.vue') },
|
|
|
- { path: '/:path(.*)', redirect: '/login' }
|
|
|
-)
|
|
|
+routes.push({ path: '/:path(.*)', redirect: '/login' })
|
|
|
|
|
|
const app = createApp(App)
|
|
|
const router = createRouter({
|