From e1b028d486713eaf55aaf35fbf334aa568059c0d Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 14 四月 2026 15:46:54 +0800
Subject: [PATCH] 项目复制
---
src/App.vue | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/src/App.vue b/src/App.vue
new file mode 100644
index 0000000..1342935
--- /dev/null
+++ b/src/App.vue
@@ -0,0 +1,39 @@
+<template>
+ <div id="app">
+ <router-view />
+ </div>
+</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() {
+ console.log('localHost')
+ }
+}
+</script>
+
+<style scoped>
+#app {
+ width: 100vw;
+ height: 100vh;
+ margin: 0;
+ padding: 0;
+}
+</style>
--
Gitblit v1.8.0