[依赖] 升级全局依赖

This commit is contained in:
就眠仪式
2021-10-11 08:31:59 +08:00
parent e72455f61d
commit 72eb03e118
3 changed files with 584 additions and 596 deletions

View File

@@ -1,7 +1,6 @@
import {
createMemoryHistory,
createRouter as _createRouter,
createWebHistory,
createWebHashHistory,
Router,
} from 'vue-router'
import zhCN from './zh-CN'
@@ -11,9 +10,7 @@ const routes = [...zhCN]
export function createRouter(): Router {
const baseUrl = import.meta.env.BASE_URL
return _createRouter({
history: import.meta.env.SSR
? createMemoryHistory(baseUrl)
: createWebHistory(baseUrl),
history: createWebHashHistory(baseUrl),
routes: routes
})
}