diff --git a/src/api/system/role.js b/src/api/system/role.js index 5957337..0b56214 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -11,7 +11,7 @@ export const getList = (current, size, params) => { } }) } -export const getTree = () => { +export const grantTree = () => { return request({ url: '/api/blade-system/menu/grant-tree', method: 'get', diff --git a/src/api/tool/code.js b/src/api/tool/code.js index 1bd25e4..14890ba 100644 --- a/src/api/tool/code.js +++ b/src/api/tool/code.js @@ -17,6 +17,7 @@ export const build = (ids) => { method: 'post', params: { ids, + key: 'saber' } }) } diff --git a/src/views/system/role.vue b/src/views/system/role.vue index ebce79b..50e0654 100644 --- a/src/views/system/role.vue +++ b/src/views/system/role.vue @@ -62,7 +62,7 @@ update, add, grant, - getTree, + grantTree, getRole, getRoleTree } from "@/api/system/role"; @@ -225,7 +225,7 @@ this.$message.warning("请选择至少一条数据"); return; } - getTree() + grantTree() .then(res => { this.list = res.data.data; return getRole(this.ids[0]);