Selaa lähdekoodia

下载视频页面兼容性处理

release
HolyKnightIX 2 vuotta sitten
vanhempi
commit
50b4ce9d0d
1 muutettua tiedostoa jossa 11 lisäystä ja 4 poistoa
  1. +11
    -4
      src/views/model/downloadVideo.vue

+ 11
- 4
src/views/model/downloadVideo.vue Näytä tiedosto

@@ -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();
}
},



Ladataan…
Peruuta
Tallenna