zhongtianhaoyuan 2 years ago
parent
commit
81a1574563
3 changed files with 4 additions and 4 deletions
  1. 2 2
      config/index.js
  2. 1 1
      pages/order/index.vue
  3. 1 1
      util/request.js

+ 2 - 2
config/index.js

@@ -1,7 +1,7 @@
 const dev = {
 	// baseUrlNew: 'https://api.changyuntong56.com',
-	// baseUrlNew: 'https://apitest.changyuntong56.com',
-	baseUrlNew: 'http://192.168.110.9:8099',
+	baseUrlNew: 'https://apitest.changyuntong56.com',
+	// baseUrlNew: 'http://192.168.110.9:8099',
 	// baseUrlNew: 'https://apitest.eliangeyun.com',
 	// baseUrlNew: 'http://192.168.110.67:8999/',
 	h5Appid: 'wxb66b599f7f61b46f',

+ 1 - 1
pages/order/index.vue

@@ -407,7 +407,7 @@
 				size: 10,
 				num: 1
 			})
-			that.$request.baseRequest('get', '/newsInfo/unreadMessage', {
+			this.$request.baseRequest('get', '/newsInfo/unreadMessage', {
 				reCommonId: this.userInfo.id,
 			}).then(res3 => {
 				if (res3.data || res3.data == 0) {

+ 1 - 1
util/request.js

@@ -59,7 +59,7 @@ const baseRequest = (method, url, data, header) => {
 								title: '网络异常,请检查网络状况',
 								duration: 2000
 							});
-							reject(response)
+							reject(res)
 							
 						}
 						// // 登录失败