소스 검색

下载视频页面兼容性处理

release
HolyKnightIX 2 년 전
부모
커밋
50b4ce9d0d
1개의 변경된 파일11개의 추가작업 그리고 4개의 파일을 삭제
  1. +11
    -4
      src/views/model/downloadVideo.vue

+ 11
- 4
src/views/model/downloadVideo.vue 파일 보기

@@ -69,12 +69,19 @@ export default {
try {
const res = await doGetVideoDetialById(id);
console.log(res, "视频详情");
this.coverUrl = res.data.coverURL;
this.videoUrl = res.data.videoUrl;
this.open();
if (res.data.success) {
this.coverUrl = res.data.coverURL;
this.videoUrl = res.data.videoUrl;
this.open();
} else {
this.videoUrl = this.$route.query.videoUrl;
this.open();
}
} catch (error) {
console.log(error, "error");
Toast.fail(error.message);
// Toast.fail(error.message);
this.videoUrl = this.$route.query.videoUrl;
this.open();
}
},



불러오는 중...
취소
저장