From 83ef01c80577811e60d929cc9d1e66402bdbb128 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Wed, 5 Jan 2022 21:30:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E6=A0=A1=E9=AA=8C=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=A4=AA=E9=95=BF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/datasource/form.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/system/datasource/form.vue b/frontend/src/views/system/datasource/form.vue index 56cdbc49a2..25564095dc 100644 --- a/frontend/src/views/system/datasource/form.vue +++ b/frontend/src/views/system/datasource/form.vue @@ -403,7 +403,11 @@ export default { if (res.success) { this.$success(i18n.t('datasource.validate_success')) } else { - this.$error(res.message) + if(res.message.length < 2500){ + this.$error(res.message) + }else { + this.$error(res.message.substring(0,2500) + '......') + } } this.refreshType(data) }) @@ -412,7 +416,11 @@ export default { if (res.success) { this.$success(i18n.t('datasource.validate_success')) } else { - this.$error(res.message) + if(res.message.length < 2500){ + this.$error(res.message) + }else { + this.$error(res.message.substring(0,2500) + '......') + } } }).catch(res => { this.$error(res.message)