fix(member page): 调整取消和退出按钮的显示判断逻辑
将原有的严格等于1的判断改为允许值为1或undefined,适配更多配置场景
This commit is contained in:
@@ -100,10 +100,10 @@ export default {
|
||||
return this.diyData?.global;
|
||||
},
|
||||
isShowCancelButton() {
|
||||
return this.globalCfg?.isShowCancelButton?.[`${this.getAppType()}`] === 1
|
||||
return [1, undefined].includes(this.globalCfg?.isShowCancelButton?.[`${this.getAppType()}`]);
|
||||
},
|
||||
isShowLogoutButton() {
|
||||
return this.globalCfg?.isShowLogoutButton?.[`${this.getAppType()}`] === 1
|
||||
return [1, undefined].includes(this.globalCfg?.isShowLogoutButton?.[`${this.getAppType()}`]);
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
Reference in New Issue
Block a user