From 8d77e2ba22147052e395f7c950aa561809fc9b46 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 19 Feb 2020 17:55:55 +0900 Subject: [PATCH] Fix bug --- src/client/pages/index.home.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/pages/index.home.vue b/src/client/pages/index.home.vue index 1005d4add..f3bbd2d91 100644 --- a/src/client/pages/index.home.vue +++ b/src/client/pages/index.home.vue @@ -98,6 +98,10 @@ export default Vue.extend({ } }, + mounted() { + this.width = this.$el.offsetWidth + }, + methods: { before() { Progress.start(); @@ -108,7 +112,7 @@ export default Vue.extend({ }, queueUpdated(q) { - this.width = this.$el.offsetWidth; + if (this.$el.offsetWidth !== 0) this.width = this.$el.offsetWidth; this.queue = q; },