From 45a5cfb8c7d53d2adaddf07f746d2b70acc9ed0c Mon Sep 17 00:00:00 2001 From: DEV_DSW <562304744@qq.com> Date: Mon, 8 Sep 2025 16:51:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Privacy/index.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/Privacy/index.vue b/components/Privacy/index.vue index 2ba349a..314401b 100644 --- a/components/Privacy/index.vue +++ b/components/Privacy/index.vue @@ -28,14 +28,13 @@ const privacyContractName = ref('隐私保护指引') onShow(() => { // 条件编译微信小程序 // #ifdef MP-WEIXIN - // const appVersion = wx.getAppBaseInfo().SDKVersion - // console.log("🚀 ~ appVersion:", appVersion) + wx.getPrivacySetting({ success: (res) => { console.log("cj隐私配置", res); - if (res.errMsg == "getPrivacySetting:ok") { + if (res.errMsg == "getPrivacySetting:ok" && res.needAuthorization) { privacyContractName.value = res.privacyContractName; - // showPrivacy.value = res.needAuthorization + showPrivacy.value = res.needAuthorization } }, });