chore: upgrade to vite3

This commit is contained in:
张传龙
2022-08-27 14:22:09 +08:00
parent 220a7800f7
commit 51b47ea722
10 changed files with 297 additions and 62 deletions

View File

@@ -63,7 +63,7 @@ export const NOT_FOUND_ROUTE = {
isHidden: true,
}
const modules = import.meta.globEager('@/views/**/route.js')
const modules = import.meta.glob('@/views/**/route.js', { eager: true })
const asyncRoutes = []
Object.keys(modules).forEach((key) => {
asyncRoutes.push(modules[key].default)