We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9d8353 commit e37f2f6Copy full SHA for e37f2f6
src/router/index.ts
@@ -1,11 +1,11 @@
1
-import { createRouter, createWebHashHistory } from 'vue-router';
+import { createRouter, createWebHistory } from 'vue-router';
2
import routes from './router.config';
3
4
// app router
5
export const router = createRouter({
6
// 解决 二级路径存在时,路径地址路由不匹配的问题
7
// https://juejin.cn/post/7051826951463370760#heading-27
8
- history: createWebHashHistory(import.meta.env.BASE_URL),
+ history: createWebHistory(import.meta.env.BASE_URL),
9
routes,
10
strict: true,
11
scrollBehavior: () => ({ left: 0, top: 0 }),
0 commit comments