From fa1bd95d533444d7360d1ada127b7a3279a3901f Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Fri, 26 Aug 2022 18:43:56 +0800
Subject: [PATCH] 新增图组等上传支持 新增编辑页

---
 src/components/mini/box16-videoDetail.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/components/mini/box16-videoDetail.vue b/src/components/mini/box16-videoDetail.vue
index c900020..5eae95f 100644
--- a/src/components/mini/box16-videoDetail.vue
+++ b/src/components/mini/box16-videoDetail.vue
@@ -166,17 +166,19 @@
 
 					if (res.data.videoUrlList == null || res.data.videoUrlList.length < 1) {
 						this.$notification.error({
-							message: '该日志还没有上传视频资源..',
+							message: '此视频还没有上传资源..',
 							placement: 'bottomRight'
 						});
+						this.videoData.url = "";
+					} else {
+						this.videoData.url = res.data.videoUrlList[0];
 					}
 
 					this.isAllowedComment = res.data.isAllowedComment;
 					this.introduce = res.data.introduce;
 
-					this.videoData.url = res.data.videoUrlList[0];
 
-					this.videoData.img = res.data.coverFileURL;
+					this.videoData.pic = res.data.coverFileURL;
 					this.videoData.title = res.data.title;
 					this.videoData.introduce = res.data.introduce;
 					this.videoData.id = res.data.id;
@@ -193,7 +195,6 @@
 	}
 </script>
 <style lang="less">
-
 	.boxMain {
 		user-select: none;
 		grid-template-columns: repeat(2, 1fr);

--
Gitblit v1.9.1