feat(privacy): add privacy check skip logic
新增隐私弹窗跳过校验的存储逻辑,通过临时缓存标记跳过隐私授权检查步骤
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user