限制非管理员/领导/小区管理员人员登录

master
许宏杰 6 months ago
parent 615165f276
commit 24c15a0101

@ -16,9 +16,7 @@ export default {
this.$router.replace({
path: "/shequ",
});
return;
}
if (this.$auth.hasRole("xiaoqu")) {
} else if (this.$auth.hasRole("xiaoqu")) {
if (this.dept.parentId == 238) {
this.$router.replace({
path: "/shequ",
@ -30,8 +28,10 @@ export default {
query: { xiaoquId: this.dept.deptId },
});
}
return;
} else {
this.$router.replace({
path: "/404",
});
}
},
};

Loading…
Cancel
Save