|
@@ -36,6 +36,10 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
const sumHeight = window.innerHeight
|
|
const sumHeight = window.innerHeight
|
|
this.height = `${Math.floor(sumHeight / 5)}px`
|
|
this.height = `${Math.floor(sumHeight / 5)}px`
|
|
|
|
+ window.addEventListener('resize', () => {
|
|
|
|
+ const sumHeight = window.innerHeight
|
|
|
|
+ this.height = `${Math.floor(sumHeight / 5)}px`
|
|
|
|
+ })
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
this.ws.close()
|
|
this.ws.close()
|