mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-03-06 03:09:08 +08:00
🐞 fix:修复路由二级路径
This commit is contained in:
parent
3c34602483
commit
25dff95fed
@ -5,7 +5,7 @@ import remainingRouter from './modules/remaining'
|
||||
|
||||
// 创建路由实例
|
||||
const router = createRouter({
|
||||
history: createWebHistory(), // createWebHashHistory URL带#,createWebHistory URL不带#
|
||||
history: createWebHistory(import.meta.env.VITE_BASE_PATH), // createWebHashHistory URL带#,createWebHistory URL不带#
|
||||
strict: true,
|
||||
routes: remainingRouter as RouteRecordRaw[],
|
||||
scrollBehavior: () => ({ left: 0, top: 0 })
|
||||
|
Loading…
x
Reference in New Issue
Block a user