From 50b4ce9d0d3627b9d9cb91ccc0616e3d140fcb6e Mon Sep 17 00:00:00 2001 From: XiaoXinPro 14 IAH5R <568170040@qq.com> Date: Thu, 16 Feb 2023 14:11:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E8=A7=86=E9=A2=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=85=BC=E5=AE=B9=E6=80=A7=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/model/downloadVideo.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/views/model/downloadVideo.vue b/src/views/model/downloadVideo.vue index cc9ef2b..04bc43c 100644 --- a/src/views/model/downloadVideo.vue +++ b/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(); } },