From c6f23d599b94d6f9891cb1be561fa8b17824d11a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E8=8A=92?= <6475813@qq.com> Date: Wed, 22 Dec 2021 08:21:06 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/components/Catch/Table/mixin/impor?= =?UTF-8?q?t.js.=20=E4=B8=8A=E4=BC=A0=E5=AE=8C=E6=AF=95=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Catch/Table/mixin/import.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Catch/Table/mixin/import.js b/src/components/Catch/Table/mixin/import.js index 0d5508b..31caa14 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) } } } -- Gitee