diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 75c6d58..6ca6879 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -69,7 +69,7 @@ const install = (Vue, vm) => { return false; } else if (res.errCode == 1) { console.log(res.message); - return res; + return res.data; } else { // 如果返回false,则会调用Promise的reject回调, // 并将进入this.$u.post(url).then().catch(res=>{})的catch回调中,res为服务端的返回值 diff --git a/components/index/video-item/index.vue b/components/index/video-item/index.vue index 9e45136..3f694aa 100644 --- a/components/index/video-item/index.vue +++ b/components/index/video-item/index.vue @@ -1,5 +1,5 @@