xsh_1997 недель назад: 2
Родитель
Сommit
d94aa185d5
3 измененных файлов с 3 добавлено и 10 удалено
  1. 1 1
      ruoyi-ui-app/config/index.js
  2. 1 1
      ruoyi-ui-app/vite.config.js
  3. 1 8
      ruoyi-ui/vue.config.js

+ 1 - 1
ruoyi-ui-app/config/index.js

@@ -13,7 +13,7 @@
13 13
  */
14 14
 
15 15
 /** 与 ruoyi-ui/vue.config.js 中 baseUrl 一致 */
16
-export const DEV_API_HOST = 'http://192.168.1.18:8010'
16
+export const DEV_API_HOST = 'http://192.168.1.10:8010'
17 17
 
18 18
 /**
19 19
  * H5 是否走 /dev-api 开发代理(需 vite.config.js 的 rewrite,manifest 的 pathRewrite 在 Vue3 常不生效)

+ 1 - 1
ruoyi-ui-app/vite.config.js

@@ -3,7 +3,7 @@ import uni from '@dcloudio/vite-plugin-uni'
3 3
 import { LLM_PROXY_TARGET } from './config/llm.js'
4 4
 
5 5
 /** 与 config/index.js 中 DEV_API_HOST 保持一致 */
6
-const DEV_API_TARGET = 'http://192.168.1.18:8010'
6
+const DEV_API_TARGET = 'http://192.168.1.10:8010'
7 7
 
8 8
 const llmTarget = String(LLM_PROXY_TARGET || '').replace(/\/$/, '')
9 9
 

+ 1 - 8
ruoyi-ui/vue.config.js

@@ -9,7 +9,7 @@ const CompressionPlugin = require('compression-webpack-plugin')
9 9
 
10 10
 const name = process.env.VUE_APP_TITLE || '巴青管理系统' // 网页标题
11 11
 
12
-const baseUrl = 'http://192.168.1.18:8010' // 后端接口
12
+const baseUrl = 'http://192.168.1.10:8010' // 后端接口
13 13
 
14 14
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
15 15
 
@@ -29,13 +29,6 @@ const devProxy = {
29 29
     changeOrigin: true
30 30
   }
31 31
 }
32
-if (process.env.LLM_PROXY_TARGET) {
33
-  devProxy['^/llm-dev-proxy'] = {
34
-    target: process.env.LLM_PROXY_TARGET.replace(/\/$/, ''),
35
-    changeOrigin: true,
36
-    pathRewrite: { '^/llm-dev-proxy': '' }
37
-  }
38
-}
39 32
 
40 33
 // vue.config.js 配置说明
41 34
 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions