Преглед на файлове

命题老师代办任务默认新建一套试卷

zhangjie преди 4 години
родител
ревизия
a9e7e2dadc
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/modules/exam-center/views/WaitTaskDetail.vue

+ 1 - 0
src/modules/exam-center/views/WaitTaskDetail.vue

@@ -239,6 +239,7 @@ export default {
       this.curPaperAttachments = this.paperAttachments.map(item => {
         return { ...item };
       });
+      if (!this.curPaperAttachments.length) this.addAtachment();
       this.paperConfirmAttachmentId = this.task.paperConfirmAttachmentId
         ? JSON.parse(this.task.paperConfirmAttachmentId)
         : { attachmentId: "", filename: "" };