新增根据角色类型判断是否显示AI大屏控制小程序

This commit is contained in:
weipengfei 2023-10-16 18:09:12 +08:00
parent db89bc4bc5
commit 7042cec438

View File

@ -226,10 +226,10 @@
},
created() {},
onLoad() {
this.Area()
this.showControllerAllLet();
this.Area();
this.initMenu();
},
onShow() {
if (this.isLogin) {
this.emptyText = '暂无可用应用'
@ -323,6 +323,24 @@
},
//
showControllerAllLet(){
let user;
if(typeof this.$store.state.app.userInfo == 'string'){
user = JSON.parse(this.$store.state.app.userInfo)
}else user = JSON.parse(JSON.stringify(this.$store.state.app.userInfo))
if(user.show_controller_applet){
this.AllMenuList.push({
name: '大屏控制',
icon: '/static/applet/dp.png',
data: {
id: '__UNI__83ABA97',
url: 'https://ceshi-worker-task.lihaink.cn/uploads/files/20231016/20231016112144fac6d9128.wgt',
},
type: 4,
})
}
},
//
initMenu() {
let now = uni.getStorageSync('gatherNowMenuList');