修复计算问题
parent
6f4500f31a
commit
4e458ec4cb
|
@ -84,6 +84,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
window.addEventListener('resize', this.handleResize)
|
||||
this.handleResize()
|
||||
},
|
||||
beforeUnmount() {
|
||||
window.removeEventListener('resize', this.handleResize)
|
||||
|
|
|
@ -85,6 +85,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
window.addEventListener('resize', this.handleResize)
|
||||
this.handleResize()
|
||||
},
|
||||
beforeUnmount() {
|
||||
window.removeEventListener('resize', this.handleResize)
|
||||
|
|
Loading…
Reference in New Issue