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 | 20 +++++---------------
1 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 1342935..6668b80 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -5,26 +5,16 @@
</template>
<script>
-import { isWeixin } from '@/utils/UA.js'
import { getWxSignature } from '@/utils/wxjssdk.js'
+
export default {
data() {
- return {
-
- }
+ 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')
+ '$route': function() {
+ getWxSignature()
+ }
}
}
</script>
--
Gitblit v1.8.0