xiatian 5 年之前
父節點
當前提交
17f16fbc10
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/modules/questions/views/EditPaper.vue

+ 6 - 2
src/modules/questions/views/EditPaper.vue

@@ -81,7 +81,11 @@
             </el-dropdown-menu>
           </el-dropdown>
 
-          <el-button @click="back" size="small" type="primary"
+          <el-button
+            @click="back"
+            size="small"
+            type="primary"
+            style="margin-left: 20px;"
             ><i class="el-icon-arrow-left"></i> 返回</el-button
           >
         </div>
@@ -923,7 +927,7 @@ export default {
       this.dialogAnswerFile = this.uploadAnswerLoading;
     },
     uploadAnswerFile() {
-      var fileList = document.getElementById("radioFile").files;
+      var fileList = document.getElementById("answerFile").files;
       if (fileList.length == 0) {
         this.answerMessage = "请选择文件!";
         return;