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.
1 parent 3c34602 commit 25dff95Copy full SHA for 25dff95
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