修复找不到role的bug
This commit is contained in:
parent
208cad1192
commit
6732dc1a90
@ -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){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user