测试环境优化
This commit is contained in:
@@ -16,9 +16,9 @@ const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
|
||||
const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
|
||||
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||
|
||||
// const ROOTPATH1 = "http://192.168.1.5:8100/czg/"; //
|
||||
// const ROOTPATH = "http://192.168.1.5:8100/czg/"; //后台服务域名
|
||||
// const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
|
||||
// const ROOTPATH1 = "http://192.168.1.41:8100/czg/"; //
|
||||
// const ROOTPATH = "http://192.168.1.41:8100/czg/"; //后台服务域名
|
||||
// const ROOTPATH2 = "http://192.168.1.41:8100"; //后台服务域名
|
||||
|
||||
module.exports = {
|
||||
APIHOST: ROOTPATH,
|
||||
|
||||
@@ -39,7 +39,6 @@ const install = (Vue, vm) => {
|
||||
|
||||
// 响应拦截,判断状态码是否通过
|
||||
Vue.prototype.$u.http.interceptor.response = (res) => {
|
||||
console.log(res);
|
||||
if (res.code == 0) {
|
||||
// res为服务端返回值,可能有code,result等字段
|
||||
// 这里对res.result进行返回,将会在this.$u.post(url).then(res => {})的then回调中的res的到
|
||||
|
||||
@@ -24,7 +24,6 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(info);
|
||||
return info;
|
||||
},
|
||||
logout: function() {
|
||||
@@ -186,7 +185,6 @@ module.exports = {
|
||||
let that = this;
|
||||
header = header || "application/x-www-form-urlencoded";
|
||||
url = that.config("APIHOST1") + url.replace(/^\//, "");
|
||||
console.log(url);
|
||||
// let token = uni.getStorageSync("token");
|
||||
let token = uni.getStorageSync("token");
|
||||
if (token) {
|
||||
|
||||
Reference in New Issue
Block a user