Commit a6a95389 by cwq0219

接口修改

1 parent a6e6451e
...@@ -39,7 +39,7 @@ const getRoleList = { ...@@ -39,7 +39,7 @@ const getRoleList = {
const saveRoleList = { const saveRoleList = {
p: [__sSaveRoleList], p: [__sSaveRoleList],
req: params => GlAxios.post(__sSaveRoleList, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }}) req: params => GlAxios.post(__sSaveRoleList, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
} }
const selectMenuTreeRoleId = { const selectMenuTreeRoleId = {
...@@ -54,7 +54,7 @@ const selectUserRoleByRoleId = { ...@@ -54,7 +54,7 @@ const selectUserRoleByRoleId = {
const updateRole = { const updateRole = {
p: [__sUpdateRole], p: [__sUpdateRole],
req: params => GlAxios.post(__sUpdateRole, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }}) req: params => GlAxios.post(__sUpdateRole, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
} }
export { export {
......
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
console.log(err) console.log(err)
this.delErrTip() this.delErrTip()
}) })
: delMenu.req(obj).then(res => { : delMenu.req({ menuId: obj.id }).then(res => {
this.delTip(true) this.delTip(true)
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!