diff --git a/src/router/index.ts b/src/router/index.ts index 57e0dfd..340d4d8 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -9,7 +9,7 @@ const routes: RouteRecordRaw[] = Object.values(routeModules) .flat() // 扁平化数组,确保所有路由项都在一个数组中 const router = createRouter({ - history: createWebHashHistory('/blog/'), + history: createWebHashHistory(), scrollBehavior: () => ({ top: 0 }), routes })