feat: 更新代码

This commit is contained in:
DEV_DSW
2025-09-08 16:51:12 +08:00
parent 14e403d8ea
commit 45a5cfb8c7

View File

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