wwf
12 小时以前 9a6cd220224fd3a9a6c84b5bb37c6410a470969f
src/App.vue
@@ -4,10 +4,23 @@
  </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(){
      if (isWeixin) {
        getWxSignature(this.$route)
      }
    },
  }
}
</script>
<style scoped>