From 2038b2284b671c08d651889379e9d7883d4a23af Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Mon, 11 Sep 2023 15:31:51 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/book/clock-add-or-update.vue | 8 +++++--- src/views/modules/book/clock.vue | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/modules/book/clock-add-or-update.vue b/src/views/modules/book/clock-add-or-update.vue index 0d9bd4b..c35b92b 100644 --- a/src/views/modules/book/clock-add-or-update.vue +++ b/src/views/modules/book/clock-add-or-update.vue @@ -210,10 +210,12 @@ this.dataForm.productImages = data.bookTaskEntity.images this.dataForm.productDetails = data.bookTaskEntity.content console.log(this.dataForm.video, 'this.dataForm.video') - this.videoList.push({ - name: data.bookTaskEntity.heading, - url: data.bookTaskEntity.video + if (this.dataForm.video != '') { + this.videoList.push({ + name: data.bookTaskEntity.heading, + url: data.bookTaskEntity.video }) + } if (data.bookTaskEntity.images != "") { var img = { name: '', diff --git a/src/views/modules/book/clock.vue b/src/views/modules/book/clock.vue index 7a0e4ee..0210f7a 100644 --- a/src/views/modules/book/clock.vue +++ b/src/views/modules/book/clock.vue @@ -14,8 +14,7 @@ :data="dataList" border v-loading="dataListLoading" - @selection-change="selectionChangeHandle" - :default-sort = "{prop: 'days', order: 'ascending'}" + @selection-change="selectionChangeHandle" style="width: 100%;">