| | |
| | | </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> |