测试环境优化

This commit is contained in:
GaoHao
2024-12-30 19:29:22 +08:00
parent 643b9f3e26
commit ca19590876
9 changed files with 42 additions and 44 deletions

View File

@@ -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,

View File

@@ -39,7 +39,6 @@ const install = (Vue, vm) => {
// 响应拦截,判断状态码是否通过
Vue.prototype.$u.http.interceptor.response = (res) => {
console.log(res);
if (res.code == 0) {
// res为服务端返回值可能有coderesult等字段
// 这里对res.result进行返回将会在this.$u.post(url).then(res => {})的then回调中的res的到

View File

@@ -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) {