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 } }, });