From 31af8072b80e99d75e6c28574c1a976477bc2b83 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 25 Apr 2026 16:29:43 +0800
Subject: [PATCH] feat: 配置微信小程序隐私协议

---
 src/pages/login/index.vue |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue
index 6964069..75d4a89 100644
--- a/src/pages/login/index.vue
+++ b/src/pages/login/index.vue
@@ -161,20 +161,20 @@
   console.log('同意隐私授权')
 }
 const privacyComponent =ref(null)
-onShow(() =>{
-  wx.getPrivacySetting({
-    success: res => {
-      console.log(res)
-      if (!res.needAuthorization) {
-        privacyComponent?.value?.closePrivacy()
-        // 查询授权,针对有tab切换的页面,可以在onshow中查询隐私授权状态,判断在tab切换后是否需要关闭授权弹框
-        console.log('已经同意隐私授权,不需要再次授权')
-      }
-    },
-    fail: () => {},
-    complete: () => {}
-  })
-})
+// onShow(() =>{
+//   wx.getPrivacySetting({
+//     success: res => {
+//       console.log(res)
+//       if (!res.needAuthorization) {
+//         privacyComponent?.value?.closePrivacy()
+//         // 查询授权,针对有tab切换的页面,可以在onshow中查询隐私授权状态,判断在tab切换后是否需要关闭授权弹框
+//         console.log('已经同意隐私授权,不需要再次授权')
+//       }
+//     },
+//     fail: () => {},
+//     complete: () => {}
+//   })
+// })
 // #endif
 </script>
 

--
Gitblit v1.9.3