From 04041235ca334fcea2aaef5c88e116dda916c5af Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 4 Feb 2021 16:08:58 +0800 Subject: [PATCH] . --- src/pages/quesBank/list/myQuesBank.vue | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/pages/quesBank/list/myQuesBank.vue b/src/pages/quesBank/list/myQuesBank.vue index 56342ad..e87a02a 100644 --- a/src/pages/quesBank/list/myQuesBank.vue +++ b/src/pages/quesBank/list/myQuesBank.vue @@ -69,7 +69,6 @@ 修改 删除 共享 - 取消共享 @@ -91,6 +90,7 @@
模板下载
上传文件 @@ -331,12 +332,16 @@ export default { uploadSuccess(res, file, fileList) { this.uploadFaild = false if(res.success){ - if(res.data.data.token){ - this.token = res.data.data.token - this.uploadFaild = true - }else{ + // if(res.data.data.token){ + // this.token = res.data.data.token + // this.uploadFaild = true + // }else{ this.$message.success('上传成功') - } + this.importVisible = false + this.page = 1 + this.keyword = '' + this.getData() + // } }else{ // res.message ? this.$message.error(res.message) : this.$message.error('上传失败,请检查数据') res.message && this.$message.error(res.message) @@ -366,10 +371,7 @@ export default { this.uploadList = [] }, uploadSure(){ - this.importVisible = false - this.page = 1 - this.keyword = '' - this.getData() + this.$refs.upload.submit() }, } };