首页权限判断

main
wanglei 2 months ago
parent 20e0069162
commit 3ee4a65ba3

@ -50,9 +50,14 @@ export default {
} }
}, },
created() { created() {
console.log(this.$store.state.user.roles);
this.queryParams.pingceId = this.$store.state.user.pcId; this.queryParams.pingceId = this.$store.state.user.pcId;
this.queryParams.itemIds = this.$store.state.user.itemIds; this.queryParams.itemIds = this.$store.state.user.itemIds;
if(this.$store.state.user.roles.length===1&&this.$store.state.user.roles[0]==='employee'){
}else {
this.getList(); this.getList();
}
}, },
methods: { methods: {
getList(){ getList(){

Loading…
Cancel
Save