feat(privacy): add privacy check skip logic

新增隐私弹窗跳过校验的存储逻辑,通过临时缓存标记跳过隐私授权检查步骤
This commit is contained in:
2026-05-25 11:11:33 +08:00
parent 836eeb080e
commit b827aba722
2 changed files with 8 additions and 0 deletions

View File

@@ -95,6 +95,12 @@ export default {
* 根据是否需要授权决定弹窗或 emit agree
*/
checkAndShow(needAuthorization) {
if (uni.getStorageSync('skipPrivacyCheck')) {
uni.removeStorageSync('skipPrivacyCheck');
this.$emit('agree');
return;
}
if (needAuthorization) {
const privacyAgreed = uni.getStorageSync('privacyAgreed');
if (privacyAgreed) {

View File

@@ -48,6 +48,8 @@ export default {
return false
}
uni.setStorageSync('skipPrivacyCheck', true);
this.uniacid = options.uniacid
this.id = options.id || 0