From 2072ece81d5ab1b23b6b2642458b2395ac2fc2b7 Mon Sep 17 00:00:00 2001 From: 18571350067 Date: Tue, 30 Nov 2021 11:07:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=B9=E9=87=8F=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E4=BF=9D=E5=AD=98=E5=A4=B1=E8=B4=A5=E5=90=8E=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E7=BB=A7=E7=BB=AD=E8=BF=9B=E8=A1=8C=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/question/QuestionList.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/course/question/QuestionList.vue b/src/views/course/question/QuestionList.vue index 12f99bd..ea80d85 100644 --- a/src/views/course/question/QuestionList.vue +++ b/src/views/course/question/QuestionList.vue @@ -211,21 +211,20 @@ export default { axios .post(ossUpload(), data, { headers: header }) .then((res) => { + this.$refs.inputFile.value = '' if (res.data.code === 200) { let params = { fileUrl: res.data.url, courseId: this.$route.query.id } importTemplate(params).then((res1) => { - this.$refs.inputFile.value = '' this.$message.success('题目导入成功!') this.getQuestion() }) } else { this.$message.error(res.data.msg) - this.$refs.inputFile.value = '' } }) .catch((err) => { - this.$message.error(res) this.$refs.inputFile.value = '' + this.$message.error(res) }) },