feat: 改为 WebHashHistory

This commit is contained in:
Junyan Qin 2024-11-12 18:29:37 +08:00
parent 43f45f9184
commit eabdda5eb1
No known key found for this signature in database
GPG Key ID: 22FE3AFADC710CEB

View File

@ -6,7 +6,7 @@
*/
// Composables
import { createRouter, createWebHistory } from 'vue-router/auto'
import { createRouter, createWebHashHistory } from 'vue-router/auto'
import DashBoard from '../pages/DashBoard.vue'
import Settings from '../pages/Settings.vue'
import Logs from '../pages/Logs.vue'
@ -20,7 +20,7 @@ const routes = [
]
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
history: createWebHashHistory(),
routes,
})