修复找不到role的bug

This commit is contained in:
weipengfei 2023-07-25 15:36:09 +08:00
parent 208cad1192
commit 6732dc1a90

View File

@ -244,7 +244,7 @@
}) : Toast('暂未开放') }) : Toast('暂未开放')
}, },
navTwo(url,key) { navTwo(url,key) {
let role_id=this.$store.state.app.userInfo.admin.role_id let role_id = this.$store.state.app?.userInfo?.admin?.role_id || null;
var arr = [3,6]; var arr = [3,6];
if(role_id && role_id[0]==9){ if(role_id && role_id[0]==9){