优化代码

pull/4/head
smallchill 7 years ago
parent 651fb100b2
commit 021170795e
  1. 2
      src/api/system/role.js
  2. 1
      src/api/tool/code.js
  3. 4
      src/views/system/role.vue

@ -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',

@ -17,6 +17,7 @@ export const build = (ids) => {
method: 'post',
params: {
ids,
key: 'saber'
}
})
}

@ -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]);

Loading…
Cancel
Save