修改
This commit is contained in:
@@ -5,8 +5,8 @@ if (process.env.NODE_ENV === 'development') {
|
||||
// baseUrl = "http://localhost:7001/";
|
||||
// socketUrl = "ws://localhost:6001/";
|
||||
// baseUrl = "https://twin-ui.com/demo/";
|
||||
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
||||
baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
||||
baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
||||
// baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
||||
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
||||
// baseUrl = "http://59.110.212.44:9200/pb/";
|
||||
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
||||
|
||||
@@ -293,9 +293,10 @@ $http.dataFactory = async function(res) {
|
||||
errMsg: "【request】" + (httpData.info || httpData.msg),
|
||||
data: res.data
|
||||
});
|
||||
} else { //其他错误提示
|
||||
} else { //其他错误提示
|
||||
console.log(httpData, '其他')
|
||||
console.log(httpData.info || httpData.msg)
|
||||
if (res.isPrompt && res.data.loadAnimate != 'none') {
|
||||
if (res.isPrompt && res.data.loadAnimate != 'none') {
|
||||
uni.showToast({
|
||||
title: httpData.info || httpData.msg,
|
||||
icon: "none",
|
||||
@@ -334,4 +335,4 @@ $http.requestError = function(e) {
|
||||
// });
|
||||
}
|
||||
}
|
||||
export default $http;
|
||||
export default $http;
|
||||
Reference in New Issue
Block a user