dongyukun
2025-04-24 5eda9aff304ddc16077cb6e48a9e89a1a695146d
src/router/index.ts
@@ -5,7 +5,7 @@
// 创建路由实例
const router = createRouter({
  history: createWebHistory('/plat'), // 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 })