Commit 6365c2e8 authored by 徐一鸣's avatar 徐一鸣

分配角色优化

parent 44f0d35f
......@@ -128,6 +128,7 @@ export default {
setUserRoles() {
let add = [];
let remove = [];
let requests = [];
this.roles.forEach((item) => {
if (this.userRoles.indexOf(item) === -1) {
......@@ -141,8 +142,6 @@ export default {
}
});
let requests = [];
if (add.length > 0) {
requests.push(
this.$http.post(`/apaas/backmgt/user/addRole`, {
......@@ -168,6 +167,10 @@ export default {
message: `分配角色成功.`,
type: "success",
});
setTimeout(() => {
this.$router.push("/authority/users");
}, 200);
})
.catch((error) => {
this.$message({
......@@ -181,8 +184,6 @@ export default {
type: "warning",
});
}
// this.$router.push("/authority/users");
},
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment