|
|
@@ -11,7 +11,7 @@ const store = createPinia()
|
|
|
store.use(piniaPersist)
|
|
|
|
|
|
// 动态路由
|
|
|
-const routes = Object.values(import.meta.glob('./views/*/route.ts', { eager: true, import: 'default' })) as unknown as RouteRecordRaw[]
|
|
|
+const routes = Object.values(import.meta.glob('./pages/*/route.ts', { eager: true, import: 'default' })) as unknown as RouteRecordRaw[]
|
|
|
routes.push({ path: '/:path(.*)', redirect: '/' })
|
|
|
|
|
|
const app = createApp(App)
|