You need to sign in or sign up before continuing.
Commit 1c66aea5 by zsh

update

parent 834da9d6
Subproject commit fd7fc1d9b5f208d456799083dd39d5d01dfd7a26 Subproject commit 71c72f3e1aeff4aea211f74cc3e231a00b11c6c3
...@@ -15,16 +15,20 @@ export default { ...@@ -15,16 +15,20 @@ export default {
}, },
mounted () { mounted () {
refreshScale() this.initScale()
window.addEventListener('resize', refreshScale)
}, },
beforeDestroy () { beforeDestroy () {
window.removeEventListener('resize') window.removeEventListener('resize')
}, },
methods: {} methods: {
initScale () {
refreshScale(7550, 1216, 7550, 1216)
window.addEventListener('resize', refreshScale)
}
}
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment