From 38712ae83223cb244020e255fc37e1ce35775c45 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 09 四月 2026 13:53:40 +0800
Subject: [PATCH] 优化

---
 src/App.vue |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index b2e0d57..1342935 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -4,10 +4,29 @@
   </div>
 </template>
 
-<script setup>
-// import { useWindowSize } from '@/utils/hook.js'
-
-// const { width, height } = useWindowSize()
+<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() {
+    console.log('localHost')
+  }
+}
 </script>
 
 <style scoped>

--
Gitblit v1.8.0