Skip to content

Commit 0db3b21

Browse files
committed
refactor: use createWebHashHistory instead of createWebHistory
1 parent f332877 commit 0db3b21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/router/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { h, resolveComponent } from 'vue'
2-
import { createRouter, createWebHistory } from 'vue-router'
2+
import { createRouter, createWebHashHistory } from 'vue-router'
33

44
import DefaultLayout from '@/layouts/DefaultLayout'
55

@@ -296,7 +296,7 @@ const routes = [
296296
]
297297

298298
const router = createRouter({
299-
history: createWebHistory(process.env.BASE_URL),
299+
history: createWebHashHistory(process.env.BASE_URL),
300300
routes,
301301
})
302302

0 commit comments

Comments
 (0)