From 80476fae71f08bf4408c7509eff254031a4eeac6 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Wed, 24 Aug 2022 18:47:09 +0800 Subject: [PATCH] 路由修正,常量提取 --- src/components/mini/box16-videoDetail.vue | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/components/mini/box16-videoDetail.vue b/src/components/mini/box16-videoDetail.vue index b4bd00b..c9acaac 100644 --- a/src/components/mini/box16-videoDetail.vue +++ b/src/components/mini/box16-videoDetail.vue @@ -86,6 +86,7 @@ }, data() { return { + loadFinish: false, showBackButton: false, articleId: "", lastArticleId: "", @@ -162,11 +163,20 @@ this.myLock = !this.myLock; return } + console.log(3333); + if (res.data.videoUrlList == null || res.data.videoUrlList.length < 1) { + this.$notification.error({ + message: '该日志还没有上传视频资源..', + placement: 'bottomRight' + }); + return + } this.isAllowedComment = res.data.isAllowedComment; this.introduce = res.data.introduce; - this.videoData.url = res.data.articleFileURL; + this.videoData.url = res.data.videoUrlList[0]; + this.videoData.img = res.data.coverFileURL; this.videoData.title = res.data.title; this.videoData.introduce = res.data.introduce; -- Gitblit v1.9.1