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