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

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

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

Loading…
Cancel
Save