tengmingxue 2 лет назад
Родитель
Сommit
cfeaa0e25c
3 измененных файлов с 27 добавлено и 4 удалено
  1. 2 2
      src/utils/request.js
  2. 2 2
      vue.config.js
  3. 23 0
      web.config

+ 2 - 2
src/utils/request.js

@@ -2,7 +2,7 @@
  * @Author: tengmingxue 1473375109@qq.com
  * @Date: 2022-10-08 14:40:20
  * @LastEditors: tengmingxue 1473375109@qq.com
- * @LastEditTime: 2022-10-09 09:33:02
+ * @LastEditTime: 2022-10-20 17:51:40
  * @FilePath: \mbBigScreen\src\utils\request.js
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -10,7 +10,7 @@ import axios from 'axios'
 import qs from 'qs'
 
 // 创建axios实例
-export const IP = 'http://221.236.31.30:8085'
+export const IP = 'http://117.176.120.194:8085'
 const service = axios.create({
   //baseURL: IP,
   baseURL:'',

+ 2 - 2
vue.config.js

@@ -2,7 +2,7 @@
  * @Author: tengmingxue 1473375109@qq.com
  * @Date: 2022-10-08 14:40:20
  * @LastEditors: tengmingxue 1473375109@qq.com
- * @LastEditTime: 2022-10-08 18:01:02
+ * @LastEditTime: 2022-10-20 17:51:19
  * @FilePath: \mbBigScreen\vue.config.js
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -46,7 +46,7 @@ module.exports = {
         },
         '/service':{
           //target: 'http://221.182.8.141:10005',
-          target: 'http://221.236.31.30:8085',
+          target: 'http://117.176.120.194:8085',
           changeOrigin: true,
           pathRewrite: {
             '^/service': '/service'

+ 23 - 0
web.config

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+    <system.webServer>
+        <rewrite>
+            <rules>
+                <rule name="myProxyServer1">
+                    <match url="^(.*)" />
+                    <conditions>
+                        <add input="{REQUEST_URI}" pattern="api/(.*)" />
+                    </conditions>
+                    <action type="Rewrite" url="http://117.176.120.161:1111/{C:1}" />
+                </rule>
+                <rule name="myProxyServer2">
+                    <match url="^(.*)" />
+                    <conditions>
+                        <add input="{REQUEST_URI}" pattern="service" />
+                    </conditions>
+                    <action type="Rewrite" url="http://117.176.120.194:8085/{R:1}" />
+                </rule>
+            </rules>
+        </rewrite>
+    </system.webServer>
+</configuration>