build(config): 更新路由历史,为移动和屏幕软件包使用基本 URL
This commit is contained in:
parent
78f95d2dd3
commit
44b950fbdc
@ -34,7 +34,7 @@ const routes = [
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes
|
||||
})
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ const routes = [
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user