plg 1 settimana fa
parent
commit
55b0f52c5d
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      src/router/index.ts
  2. 1 1
      vite.config.ts

+ 2 - 2
src/router/index.ts

@@ -132,13 +132,13 @@ const routes = [
 ]
 const router = createRouter({
   // history: createWebHistory(import.meta.env.BASE_URL),
-  history: createWebHistory("/fireBrigadeUser/"),
+  history: createWebHistory("/fireBrigade/"),
   //highLevelIntellectual
   // history: createWebHistory('/pc/'),
   routes
 })
 //页面滚动到最顶部
-router.beforeEach((to, from, next) => {
+router.beforeEach((to: { meta: { title: any } }, from: any, next: () => void) => {
   window.scrollTo(0, 0);
   /** meta是定义路由时路由的属性 */
   if (to.meta.title) {

+ 1 - 1
vite.config.ts

@@ -24,7 +24,7 @@ export default defineConfig({
       }
     }
   },
-  base: '/fireBrigadeUser/',
+  base: '/fireBrigade/',
   css: {
     preprocessorOptions: {
       scss: {