hzj18279462576@163.com 11 місяців тому
батько
коміт
fab414d84f
4 змінених файлів з 14 додано та 7 видалено
  1. 4 2
      config/index.js
  2. BIN
      dist.zip
  3. 2 1
      src/main.js
  4. 8 4
      src/utils/httpRequest.js

+ 4 - 2
config/index.js

@@ -15,9 +15,11 @@ module.exports = {
     proxyTable: devEnv.OPEN_PROXY === false ? {} : {
       '/proxyApi': {
         // target: 'http://iyfpk3.natappfree.cc/sqx_fast',
+
         // target: 'https://mxys.chuanghai-tech.com/sqx_fast/',//mxys.chuanghai-tech.com
-        target: 'https://mxys.chuanghai-tech.com/wm-test/wm-api',//mxys.chuanghai-tech.com
-		changeOrigin: true,
+        target: 'http://192.168.161.190:8171/sqx_fast/',
+        // target: 'https://mxys.chuanghai-tech.com/wm-test/wm-api',//mxys.chuanghai-tech.com
+		    changeOrigin: true,
         pathRewrite: {
           '^/proxyApi': ''
         }


+ 2 - 1
src/main.js

@@ -15,7 +15,8 @@ import * as imageConversion from 'image-conversion';
 import { getCompressionQuality, compressImage } from '@/utils/compressionUtils.js';
 
 // Vue.prototype.Tupiantou ='https://mxys.chuanghai-tech.com/sqx_fast/alioss/upload'//线上
-Vue.prototype.Tupiantou ='https://mxys.chuanghai-tech.com/wm-test/wm-api/sqx_fast/alioss/upload'//线下
+Vue.prototype.Tupiantou ='http://192.168.161.190:8171/sqx_fast/alioss/upload'//线上
+// Vue.prototype.Tupiantou ='https://mxys.chuanghai-tech.com/wm-test/wm-api/sqx_fast/alioss/upload'//线下
 Vue.prototype.Tupian =function(img){
 	return 'https://mxys.chuanghai-tech.com/wmfile'+img
 }//全局图片请求头

+ 8 - 4
src/utils/httpRequest.js

@@ -60,8 +60,10 @@ http.adornUrl = (actionName) => {
   // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
 // return 'https://chtech.ncjti.edu.cn/testingServer/waiMaiAdmin/' + actionName}
 // return 'http://iyfpk3.natappfree.cc/sqx_fast/' + actionName
+
 // return 'https://mxys.chuanghai-tech.com/sqx_fast/' + actionName
-return 'https://mxys.chuanghai-tech.com/wm-test/wm-api/sqx_fast/' + actionName
+return 'http://192.168.161.190:8171/sqx_fast/' + actionName
+// return 'https://mxys.chuanghai-tech.com/wm-test/wm-api/sqx_fast/' + actionName
 }
 
 http.adornUrl2 = (actionName) => {
@@ -74,15 +76,17 @@ http.adornUrlMsg = (actionName) => {
   // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
 // return 'https://chtech.ncjti.edu.cn/testingServer/waiMaiAdmin/' + actionName}
 // return 'http://iyfpk3.natappfree.cc/sqx_fast/' + actionName
+
 // return 'https://mxys.chuanghai-tech.com/sqx_fast/' + actionName
-return 'https://mxys.chuanghai-tech.com/wm-test/wm-api/sqx_fast/' + actionName
+return 'http://192.168.161.190:8171/sqx_fast/' + actionName
+// return 'https://mxys.chuanghai-tech.com/wm-test/wm-api/sqx_fast/' + actionName
 }
 http.adornWss = (actionName) => {
   // 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截!
   // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
 	// return 'wss://www.daweilinli.com/wss/' + actionName
-	// return 'wss://mxys.chuanghai-tech.com/wss/' + actionName
-	return 'wss://mxys.chuanghai-tech.com/wss-test/' + actionName
+	return 'wss://mxys.chuanghai-tech.com/wss/' + actionName
+	// return 'wss://mxys.chuanghai-tech.com/wss-test/' + actionName
 }
 /**
  * get请求参数处理