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; }); },