From dfee07c11c5c0a2e96afa20f8297851cc86518e7 Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Sun, 3 May 2020 21:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0api=E5=85=A5=E5=BA=93=E9=80=89=E9=A1=B9=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=9F=90=E4=BA=9B=E5=B7=B2=E7=9F=A5?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/utils/request.js | 2 +- web/src/view/systemTools/autoCode/index.vue | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/web/src/utils/request.js b/web/src/utils/request.js index 622c95f0..1034349f 100644 --- a/web/src/utils/request.js +++ b/web/src/utils/request.js @@ -60,7 +60,7 @@ service.interceptors.response.use( } else { Message({ showClose: true, - message: response.data.msg, + message: response.data.msg||decodeURI(response.headers.msg), type: 'error', onClose: () => { if (response.data.data && response.data.data.reload) { diff --git a/web/src/view/systemTools/autoCode/index.vue b/web/src/view/systemTools/autoCode/index.vue index 12829508..28189ca6 100644 --- a/web/src/view/systemTools/autoCode/index.vue +++ b/web/src/view/systemTools/autoCode/index.vue @@ -11,6 +11,9 @@ + + 自动创建api +
@@ -30,7 +33,7 @@ width="280"> @@ -97,6 +100,7 @@ export default { structName:"", packageName:"", abbreviation:"", + autoCreateApiToSql:false, fields:[] }, rules:{