mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-31 17:12:49 +08:00
post 不传参数报错问题,security-config -> security
This commit is contained in:
parent
f78ca68b2e
commit
bb91e96638
@ -12,7 +12,7 @@ const install = (app) => {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
'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), {
|
app.config.globalProperties.$postJson = (url, data) => request.post(url, JSON.stringify(data), {
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -97,7 +97,7 @@ magic-api:
|
|||||||
crud: # CRUD相关配置
|
crud: # CRUD相关配置
|
||||||
logic-delete-column: is_del #逻辑删除列
|
logic-delete-column: is_del #逻辑删除列
|
||||||
logic-delete-value: 1 #逻辑删除值
|
logic-delete-value: 1 #逻辑删除值
|
||||||
# security-config:
|
# security:
|
||||||
# username: admin
|
# username: admin
|
||||||
# password: 123456
|
# password: 123456
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user