EVA 2 роки тому
батько
коміт
7fbf2b0383
2 змінених файлів з 7 додано та 2 видалено
  1. 2 2
      ruoyi-ui/vue.config.js
  2. 5 0
      ruoyi-web/vite.config.js

+ 2 - 2
ruoyi-ui/vue.config.js

@@ -42,8 +42,8 @@ module.exports = {
         // target: `http://4j9755v434.qicp.vip:30877`,
         // target: `http://10.16.4.3:8080`, //陈航
         // target: `http://10.16.4.5:8080`,//孙坤阳
-        target: `http://localhost:8080`,
-        // target: `http://mz.tshe.cn:801/prod-api`,
+        // target: `http://localhost:8080`,
+        target: `http://mz.tshe.cn:801/prod-api`,
         // target: `http://10.16.4.14:801/prod-api`,
         changeOrigin: true,
         pathRewrite: {

+ 5 - 0
ruoyi-web/vite.config.js

@@ -35,6 +35,11 @@ export default defineConfig(({ mode, command }) => {
           target: 'http://localhost:8080',
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, '')
+        },
+        '/uploadPath': {
+          target: `http://mz.tshe.cn:801/uploadPath`,
+          changeOrigin: true,
+          rewrite: (p) => p.replace(/^\/uploadPath/, '')
         }
       }
     },