From 9d5701f35a14c04ca6be0961137786aaedcf6b34 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 15 Feb 2019 15:06:15 +0900 Subject: [PATCH] Update deck.vue --- src/client/app/desktop/views/deck/deck.vue | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/client/app/desktop/views/deck/deck.vue b/src/client/app/desktop/views/deck/deck.vue index 5af2075e4a..62ed0a8ce3 100644 --- a/src/client/app/desktop/views/deck/deck.vue +++ b/src/client/app/desktop/views/deck/deck.vue @@ -55,17 +55,16 @@ export default Vue.extend({ } }, - watch: {/* - temporaryColumn() { - if (this.temporaryColumn != null) { - this.$nextTick(() => { - this.$refs.body.scrollTo({ - left: this.$refs.body.scrollWidth - this.$refs.body.clientWidth, - behavior: 'smooth' - }); + watch: { + $route() { + if (this.$route.name == 'index') return; + this.$nextTick(() => { + this.$refs.body.scrollTo({ + left: this.$refs.body.scrollWidth - this.$refs.body.clientWidth, + behavior: 'smooth' }); - } - }*/ + }); + } }, provide() {