fix(member page): 调整取消和退出按钮的显示判断逻辑

将原有的严格等于1的判断改为允许值为1或undefined,适配更多配置场景
This commit is contained in:
2026-07-04 18:23:25 +08:00
parent bb18dedc35
commit f48b8f0e41

View File

@@ -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() {