优化代码

This commit is contained in:
smallchill 2019-02-22 21:56:49 +08:00
parent 9a7ddce149
commit 8353e6ab1a
3 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

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