diff --git a/packages/web-runtime/src/layouts/Application.vue b/packages/web-runtime/src/layouts/Application.vue index 7792450d5bb..84d522112c7 100644 --- a/packages/web-runtime/src/layouts/Application.vue +++ b/packages/web-runtime/src/layouts/Application.vue @@ -30,15 +30,6 @@ export default { windowWidth: 0 } }, - mounted() { - this.$nextTick(() => { - window.addEventListener('resize', this.onResize) - this.onResize() - }) - }, - beforeDestroy() { - window.removeEventListener('resize', this.onResize) - }, computed: { ...mapGetters([ 'capabilities', @@ -107,6 +98,15 @@ export default { return list } }, + mounted() { + this.$nextTick(() => { + window.addEventListener('resize', this.onResize) + this.onResize() + }) + }, + beforeDestroy() { + window.removeEventListener('resize', this.onResize) + }, methods: { ...mapActions(['deleteMessage']), onResize() {