From 1d37c375fd114212ee1419c3bbdadc81d76666a4 Mon Sep 17 00:00:00 2001
From: yearning <10538594+wangweifeng1999@user.noreply.gitee.com>
Date: 星期四, 03 九月 2026 18:01:59 +0800
Subject: [PATCH] 优化

---
 src/App.vue |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 26eeb5d..6668b80 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -5,23 +5,17 @@
 </template>
 
 <script>
-import { isWeixin } from '@/utils/UA.js'
 import { getWxSignature } from '@/utils/wxjssdk.js'
+
 export default {
   data() {
     return {}
   },
   watch: {
-    '$route.path': function(){
-      let count = localStorage.getItem('refreshCount') || 0
-      count = Number(count) + 1 
-      localStorage.setItem('refreshCount', count++)
-      if (isWeixin) {
-        getWxSignature(this.$route)
-      }
-    },
-  },
-  created() {}
+    '$route': function() {
+      getWxSignature()
+    }
+  }
 }
 </script>
 

--
Gitblit v1.8.0