潘志宝
2025-02-28 4a859a6d69984c77fa8166255c65f5a94eb0bd71
src/router/index.ts
@@ -5,7 +5,7 @@
// 创建路由实例
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 })