feat: 更新代码
This commit is contained in:
@@ -28,14 +28,13 @@ const privacyContractName = ref('隐私保护指引')
|
|||||||
onShow(() => {
|
onShow(() => {
|
||||||
// 条件编译微信小程序
|
// 条件编译微信小程序
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
// const appVersion = wx.getAppBaseInfo().SDKVersion
|
|
||||||
// console.log("🚀 ~ appVersion:", appVersion)
|
|
||||||
wx.getPrivacySetting({
|
wx.getPrivacySetting({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
console.log("cj隐私配置", res);
|
console.log("cj隐私配置", res);
|
||||||
if (res.errMsg == "getPrivacySetting:ok") {
|
if (res.errMsg == "getPrivacySetting:ok" && res.needAuthorization) {
|
||||||
privacyContractName.value = res.privacyContractName;
|
privacyContractName.value = res.privacyContractName;
|
||||||
// showPrivacy.value = res.needAuthorization
|
showPrivacy.value = res.needAuthorization
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user