From 638406567d99992053502a6e1e9aadaf0fe820d0 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Tue, 23 Jun 2026 11:01:55 +0800 Subject: [PATCH] refactor(member page): extract global config getter method extract repeated diyData.global access into a dedicated globalCfg computed property, simplify button visibility check logic --- pages_tool/member/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pages_tool/member/index.vue b/pages_tool/member/index.vue index e051d5c..0eccc33 100644 --- a/pages_tool/member/index.vue +++ b/pages_tool/member/index.vue @@ -96,11 +96,14 @@ export default { minHeight: this.openBottomNav ? 'calc(100vh - 55px)' : '' }; }, + globalCfg() { + return this.diyData?.global; + }, isShowCancelButton() { - return this.diyData?.global?.isShowCancelButton?.[`${this.getAppType()}`] === 1 + return this.globalCfg?.isShowCancelButton?.[`${this.getAppType()}`] === 1 }, isShowLogoutButton() { - return this.diyData?.global?.isShowLogoutButton?.[`${this.getAppType()}`] === 1 + return this.globalCfg?.isShowLogoutButton?.[`${this.getAppType()}`] === 1 } }, onLoad() {