From b2eb04ab9859e1c22d3a57deab33a201148f5a3d Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Wed, 1 Jul 2026 12:00:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(privacy-popup):=20=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E5=A4=9A=E7=AB=AF=E9=9A=90=E7=A7=81=E5=8D=8F=E8=AE=AE=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 简化隐私弹窗组件的多端环境配置代码,将H5和鸿蒙小程序的初始化配置合并,减少重复代码 --- components/privacy-popup/privacy-popup.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/privacy-popup/privacy-popup.vue b/components/privacy-popup/privacy-popup.vue index a317578..d0c5d1d 100644 --- a/components/privacy-popup/privacy-popup.vue +++ b/components/privacy-popup/privacy-popup.vue @@ -43,14 +43,10 @@ export default { showPop: false, privacyAuthorization: null, privacyResolves: new Set(), + privacyContractName: this.$lang('components.privacyPopup.defaultContractNameMp'), appName: this.$lang('components.privacyPopup.defaultAppNameMp'), - // #ifdef H5 - appName: this.$lang('components.privacyPopup.defaultAppNameH5'), - privacyContractName: this.$lang('components.privacyPopup.defaultContractNameH5'), - privacyServiceName: this.$lang('components.privacyPopup.defaultServiceNameH5'), - // #endif - // #ifdef MP-HARMONY + // #ifdef H5 || MP-HARMONY appName: this.$lang('components.privacyPopup.defaultAppNameH5'), privacyContractName: this.$lang('components.privacyPopup.defaultContractNameH5'), privacyServiceName: this.$lang('components.privacyPopup.defaultServiceNameH5'),