From d332619f2eca4a345ad134e0651e7c5f938fe92a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 7 Apr 2023 11:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../motionPrescriptionLibrary/index.vue | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/views/system/motionPrescriptionLibrary/index.vue b/src/views/system/motionPrescriptionLibrary/index.vue index 62fb6ea..f84f21c 100644 --- a/src/views/system/motionPrescriptionLibrary/index.vue +++ b/src/views/system/motionPrescriptionLibrary/index.vue @@ -539,16 +539,18 @@ export default { this.fileList = []; this.upload.data.motionPrescriptionId = e.id; prescriptionVideoUpload(e.id).then(res => { - res.data.prescriptionVideoUrlList.forEach(e => { - var arr = e.split("/"); - var obj = { - name: arr[4], - response: { - prescriptionVideoUrl: e - } - }; - this.fileList.push(obj); - }); + if (res.data.prescriptionVideoUrlList.length > 0) { + res.data.prescriptionVideoUrlList.forEach(e => { + var arr = e.split("/"); + var obj = { + name: arr[4], + response: { + prescriptionVideoUrl: e + } + }; + this.fileList.push(obj); + }); + } this.upload.open = true; }); },