Merge branch 'gaohao' of https://e.coding.net/g-cphe0354/duanju/video_app into test
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的到
|
||||
|
||||
Reference in New Issue
Block a user