mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-30 22:27:13 +00:00
feat: 改为 WebHashHistory
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Composables
|
// Composables
|
||||||
import { createRouter, createWebHistory } from 'vue-router/auto'
|
import { createRouter, createWebHashHistory } from 'vue-router/auto'
|
||||||
import DashBoard from '../pages/DashBoard.vue'
|
import DashBoard from '../pages/DashBoard.vue'
|
||||||
import Settings from '../pages/Settings.vue'
|
import Settings from '../pages/Settings.vue'
|
||||||
import Logs from '../pages/Logs.vue'
|
import Logs from '../pages/Logs.vue'
|
||||||
@@ -20,7 +20,7 @@ const routes = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(import.meta.env.BASE_URL),
|
history: createWebHashHistory(),
|
||||||
routes,
|
routes,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user