diff --git a/src/components/Catch/Table/mixin/import.js b/src/components/Catch/Table/mixin/import.js index 0d5508b1ae18e7c6c9838d2c7e7d28a4623bef10..31caa1442c211f69bce9847f623c9e7039f73833 100644 --- a/src/components/Catch/Table/mixin/import.js +++ b/src/components/Catch/Table/mixin/import.js @@ -42,10 +42,12 @@ export default { }, importSuccess(response, file, fileList) { this.importLoading = false - if (response.data.code === 10000) { + if (response.code === 10000) { this.$message.success('导入成功') + this.importVisible = false + this.$emit('ok') } else { - this.$message.error(response.data.message) + this.$message.error(response.message) } } }