yearning
21 小时以前 1d37c375fd114212ee1419c3bbdadc81d76666a4
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)
    '$route': function() {
      getWxSignature()
      }
    },
  },
  created() {}
  }
}
</script>