瀏覽代碼

下载视频页面兼容性处理

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 { try {
const res = await doGetVideoDetialById(id); const res = await doGetVideoDetialById(id);
console.log(res, "视频详情"); 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) { } catch (error) {
console.log(error, "error"); console.log(error, "error");
Toast.fail(error.message);
// Toast.fail(error.message);
this.videoUrl = this.$route.query.videoUrl;
this.open();
} }
}, },




Loading…
取消
儲存