🐞 fix:修复路由二级路径

This commit is contained in:
preschooler committed 2024-09-08 14:26:22 +08:00
1 parent 3c34602483
commit 25dff95fed
1 file changed
+1 -1
+1 -1
View File
@@ -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 })