From 7392789233dfff6df56cc1ee0097804713ad51f3 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 03 十二月 2024 12:05:12 +0800
Subject: [PATCH] 文件bug

---
 src/views/onlineStudy/file.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/onlineStudy/file.vue b/src/views/onlineStudy/file.vue
index 89ba1bd..92fb763 100644
--- a/src/views/onlineStudy/file.vue
+++ b/src/views/onlineStudy/file.vue
@@ -197,11 +197,15 @@
       this.form.attachment = fileList.filter(item => item.name !== fileName);
     },
     getUploadAttachmentUrl(uploadData) {
-      this.form.attachment = uploadData;
+      if (uploadData) {
+        this.form.attachment = uploadData;
+      }
     },
     getUploadUrl(uploadData) {
       console.log("鏀跺埌锛�", uploadData)
-      this.form.contentUrl = uploadData;
+      if (uploadData) {
+        this.form.contentUrl = uploadData;
+      }
     },
     remove(id) {
       OnlineStudyAPI.remove([id]).then(res => {

--
Gitblit v1.8.0