From bb91e96638ffe9f116385f18cfeea16b18b24a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E9=87=91=E6=B3=BD?= <1098696801@qq.com> Date: Thu, 24 Mar 2022 02:00:03 +0800 Subject: [PATCH] =?UTF-8?q?post=20=E4=B8=8D=E4=BC=A0=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=EF=BC=8Csecurity-config=20?= =?UTF-8?q?->=20security?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- magic-boot-ui/src/scripts/globalProperties.js | 2 +- magic-boot/src/main/resources/application.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/magic-boot-ui/src/scripts/globalProperties.js b/magic-boot-ui/src/scripts/globalProperties.js index 25dae80..1fa1b93 100644 --- a/magic-boot-ui/src/scripts/globalProperties.js +++ b/magic-boot-ui/src/scripts/globalProperties.js @@ -12,7 +12,7 @@ const install = (app) => { headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - transformRequest: [data => Object.keys(data).map(it => encodeURIComponent(it) + '=' + encodeURIComponent(data[it] === null || data[it] === undefined ? '' : data[it])).join('&')] + transformRequest: [data => data && Object.keys(data).map(it => encodeURIComponent(it) + '=' + encodeURIComponent(data[it] === null || data[it] === undefined ? '' : data[it])).join('&')] }) app.config.globalProperties.$postJson = (url, data) => request.post(url, JSON.stringify(data), { headers: { diff --git a/magic-boot/src/main/resources/application.yml b/magic-boot/src/main/resources/application.yml index ba892db..1294934 100644 --- a/magic-boot/src/main/resources/application.yml +++ b/magic-boot/src/main/resources/application.yml @@ -97,7 +97,7 @@ magic-api: crud: # CRUD相关配置 logic-delete-column: is_del #逻辑删除列 logic-delete-value: 1 #逻辑删除值 -# security-config: +# security: # username: admin # password: 123456