瀏覽代碼

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

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: "" };