diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-19 17:55:55 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-19 17:55:55 +0900 |
| commit | 8d77e2ba22147052e395f7c950aa561809fc9b46 (patch) | |
| tree | e8ca43a4f831f4242dee8d275a733a8c7f862230 /src | |
| parent | :art: (diff) | |
| download | sharkey-8d77e2ba22147052e395f7c950aa561809fc9b46.tar.gz sharkey-8d77e2ba22147052e395f7c950aa561809fc9b46.tar.bz2 sharkey-8d77e2ba22147052e395f7c950aa561809fc9b46.zip | |
Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/pages/index.home.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/pages/index.home.vue b/src/client/pages/index.home.vue index 1005d4add2..f3bbd2d91b 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; }, |