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() }, } };