mirror of
https://github.com/chillzhuang/Saber.git
synced 2024-11-22 10:29:28 +08:00
⚡ 优化代码
This commit is contained in:
parent
9a7ddce149
commit
8353e6ab1a
@ -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…
Reference in New Issue
Block a user