Browse Source

修改配置文件

plg 3 months ago
parent
commit
e986638755
3 changed files with 5 additions and 1 deletions
  1. 1 0
      src/router/index.ts
  2. 3 1
      src/utils/http.ts
  3. 1 0
      vite.config.ts

+ 1 - 0
src/router/index.ts

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

+ 3 - 1
src/utils/http.ts

@@ -28,7 +28,9 @@ const menuStatus = menuStatusStore()
 // const base_url = 'http://129.211.221.44:8089'
 
 //锦泓服务器
-const base_url = 'http://146.56.226.174:8089'
+// const base_url = 'http://146.56.226.174:8089'
+//新服务器
+const base_url = 'http://123.57.18.29:8089'
 
 
 //设置axios 默认访问路径

+ 1 - 0
vite.config.ts

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