瀏覽代碼

修改路径

plg 3 周之前
父節點
當前提交
c4f96085de
共有 2 個文件被更改,包括 3 次插入3 次删除
  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: {