We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c34602 + 25dff95 commit 9c6b5ebCopy full SHA for 9c6b5eb
src/router/index.ts
@@ -5,7 +5,7 @@ import remainingRouter from './modules/remaining'
5
6
// 创建路由实例
7
const router = createRouter({
8
- history: createWebHistory(), // createWebHashHistory URL带#,createWebHistory URL不带#
+ history: createWebHistory(import.meta.env.VITE_BASE_PATH), // createWebHashHistory URL带#,createWebHistory URL不带#
9
strict: true,
10
routes: remainingRouter as RouteRecordRaw[],
11
scrollBehavior: () => ({ left: 0, top: 0 })
0 commit comments