Browse Source

修改路径

plg 3 weeks ago
parent
commit
c4f96085de
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/router/index.ts
  2. 1 1
      vite.config.ts

+ 2 - 2
src/router/index.ts

@@ -131,8 +131,8 @@ const routes = [
   }
 ]
 const router = createRouter({
-  history: createWebHistory(import.meta.env.BASE_URL),
-  // history: createWebHistory('/pc/'),
+  // history: createWebHistory(import.meta.env.BASE_URL),
+  history: createWebHistory('/finance/'),
   routes
 })
 //页面滚动到最顶部

+ 1 - 1
vite.config.ts

@@ -6,7 +6,7 @@ import vueJsx from '@vitejs/plugin-vue-jsx'
 
 // https://vitejs.dev/config/
 export default defineConfig({
-  // base: '/pc/',
+  base: '/finance/',
   css: {
     preprocessorOptions: {
       scss: {