We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe4d2c1 commit f33c050Copy full SHA for f33c050
src/router/index.ts
@@ -1,4 +1,4 @@
1
-import { Router, createRouter, createWebHistory } from 'vue-router'
+import { Router, createRouter, createWebHashHistory } from 'vue-router'
2
3
/** 自动导入 src/router/modules 下的静态路由
4
* import.meta.glob使用说明:https://cn.vitejs.dev/guide/features#glob-import
@@ -27,7 +27,7 @@ Object.keys(modules).forEach((key) => {
27
* hash模式使用createWebHashHistory(): https://router.vuejs.org/zh/api/#Functions-createWebHashHistory
28
*/
29
export const router: Router = createRouter({
30
- history: createWebHistory(),
+ history: createWebHashHistory(),
31
routes,
32
strict: true,
33
scrollBehavior(_to, from, savedPosition) {
0 commit comments