Showing
6 changed files
with
13 additions
and
8 deletions
| @@ -98,9 +98,12 @@ instance.interceptors.response.use(// 响应拦截器response类型就是Axios.r | @@ -98,9 +98,12 @@ instance.interceptors.response.use(// 响应拦截器response类型就是Axios.r | ||
| 98 | // console.log(error.request) | 98 | // console.log(error.request) |
| 99 | // console.log(error.response) | 99 | // console.log(error.response) |
| 100 | // 这里用来处理http常见错误,进行全局提示 | 100 | // 这里用来处理http常见错误,进行全局提示 |
| 101 | - let message = buildErrorMsg(error.response?.status); | ||
| 102 | - // 错误消息可以使用全局弹框展示出来 | ||
| 103 | - console.log(`httpStatus:${error.response?.status}-${message},请检查网络或联系管理员!`) | 101 | + if(error!=null && error.response!=null ){ |
| 102 | + let message = buildErrorMsg(error.response.status); | ||
| 103 | + // 错误消息可以使用全局弹框展示出来 | ||
| 104 | + console.log(`httpStatus:${error.response?.status}-${message},请检查网络或联系管理员!`) | ||
| 105 | + } | ||
| 106 | + | ||
| 104 | return Promise.reject(error); | 107 | return Promise.reject(error); |
| 105 | } | 108 | } |
| 106 | ); | 109 | ); |
sight_harmony/dependencies/hvigor-4.1.2.tgz
0 → 100644
This file is too large to display.
No preview for this file type
No preview for this file type
| @@ -130,10 +130,9 @@ export struct BroadcastPageComponent { | @@ -130,10 +130,9 @@ export struct BroadcastPageComponent { | ||
| 130 | } | 130 | } |
| 131 | } | 131 | } |
| 132 | .layoutWeight(1) | 132 | .layoutWeight(1) |
| 133 | - // @ts-ignore | ||
| 134 | - .onScrollFrameBegin((offset, state) => { | ||
| 135 | - console.log('ccc',String(offset), state) | ||
| 136 | - }) | 133 | + // .onScrollFrameBegin((offset, state) => { |
| 134 | + // console.log('ccc',String(offset), state) | ||
| 135 | + // }) | ||
| 137 | .onReachStart(() => { | 136 | .onReachStart(() => { |
| 138 | console.log('onReachStart----->',) | 137 | console.log('onReachStart----->',) |
| 139 | }) | 138 | }) |
| @@ -159,7 +159,10 @@ export struct DetailPlayShortVideoPage { | @@ -159,7 +159,10 @@ export struct DetailPlayShortVideoPage { | ||
| 159 | onLoad: async () => { | 159 | onLoad: async () => { |
| 160 | // console.log('onload==', this.index) | 160 | // console.log('onload==', this.index) |
| 161 | // if (this.index === 0) { | 161 | // if (this.index === 0) { |
| 162 | - this.playerController.firstPlay(this.contentDetailData?.videoInfo[0]?.videoUrl); | 162 | + |
| 163 | + if(this.contentDetailData!=null && this.contentDetailData?.videoInfo[0]!=null){ | ||
| 164 | + this.playerController.firstPlay(this.contentDetailData.videoInfo[0].videoUrl); | ||
| 165 | + } | ||
| 163 | // } | 166 | // } |
| 164 | } | 167 | } |
| 165 | }) | 168 | }) |
-
Please register or login to post a comment