15143018065 8 months ago
parent
commit
6809bd3b41
2 changed files with 22 additions and 2 deletions
  1. 13 0
      pom.xml
  2. 9 2
      ruoyi-ui/vue.config.js

+ 13 - 0
pom.xml

@@ -116,6 +116,19 @@
                 <nacos.config.namespace>myvm</nacos.config.namespace>
             </properties>
         </profile>
+        <profile>
+            <id>wx</id>
+            <properties>
+                <profiles.active>wx</profiles.active>
+                <nacos.server>10.16.4.12:8848</nacos.server>
+                <nacos.config.user>nacos</nacos.config.user>
+                <nacos.config.password>sckjadmin</nacos.config.password>
+                <nacos.discovery.group>DPYS</nacos.discovery.group>
+                <nacos.config.group>DPYS</nacos.config.group>
+                <nacos.discovery.namespace>wx</nacos.discovery.namespace>
+                <nacos.config.namespace>wx</nacos.config.namespace>
+            </properties>
+        </profile>
     </profiles>
 
     <!-- 依赖声明 -->

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

@@ -44,8 +44,8 @@ module.exports = {
         // target: `http://4j9755v434.qicp.vip:30877`,
         // target: `http://10.16.4.2:8080`, //陈航
         // target: `http://10.16.4.5:8080`,//孙坤阳
-        // target: `http://localhost:8080`,
-        target: `http://121.36.73.159:807/prod-api`,
+        target: `http://localhost:8080`,
+        // target: `http://121.36.73.159:807/prod-api`,
         // target: `http://10.16.4.7:806/prod-api`,
         // target: `http://10.16.4.14:801/prod-api`,
         changeOrigin: true,
@@ -96,6 +96,13 @@ module.exports = {
           ['^' + '/mzylfwobs']: '',
         },
       },
+      '/upload': {
+        target: `http://121.36.73.159:807/prod-api/file/upload`,
+        changeOrigin: true,
+        pathRewrite: {
+          ['^' + '/upload']: '',
+        },
+      },
     },
     disableHostCheck: true,
   },