|
@@ -1,11 +1,11 @@
|
|
|
-import { createRouter, createWebHistory } from 'vue-router'
|
|
|
+import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
import constantRouter from './constantRouter'
|
|
|
import createRouterGuard from './guard'
|
|
|
export { default as asyncRouter } from './asyncRouter'
|
|
|
|
|
|
const router = createRouter({
|
|
|
- history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
- routes: [...constantRouter]
|
|
|
+ history: createWebHashHistory(import.meta.env.BASE_URL),
|
|
|
+ routes: [...constantRouter],
|
|
|
})
|
|
|
|
|
|
createRouterGuard(router)
|