wwf
6 天以前 38712ae83223cb244020e255fc37e1ce35775c45
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>