This commit is contained in:
GaoHao
2024-12-30 19:31:42 +08:00
7 changed files with 40 additions and 40 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的到