From 89e1708288f5c071520bf1b8f2c90637794ad01d Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Wed, 3 May 2023 09:25:16 -0400 Subject: [PATCH] Prettified --- .../service-location/shop-question/shop-question.spec.js | 2 +- .../service-location/shop-question/shop-question.vue | 1 - src/mixins/base-mixin.js | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/layouts/service-location/shop-question/shop-question.spec.js b/src/layouts/service-location/shop-question/shop-question.spec.js index 32607d749..8b26dfee6 100644 --- a/src/layouts/service-location/shop-question/shop-question.spec.js +++ b/src/layouts/service-location/shop-question/shop-question.spec.js @@ -12,7 +12,7 @@ jest.mock("@/mixins/base-mixin", () => ({ }); } }, - scrollToPageBottom() {} + scrollToPageBottom() {}, }, })); diff --git a/src/layouts/service-location/shop-question/shop-question.vue b/src/layouts/service-location/shop-question/shop-question.vue index f743df39d..cbe022d5e 100644 --- a/src/layouts/service-location/shop-question/shop-question.vue +++ b/src/layouts/service-location/shop-question/shop-question.vue @@ -141,7 +141,6 @@ export default { await this.$nextTick(); this.scrollToPageBottom(); - }, resetShopList() { this.answers = []; diff --git a/src/mixins/base-mixin.js b/src/mixins/base-mixin.js index e7c64387d..488500639 100644 --- a/src/mixins/base-mixin.js +++ b/src/mixins/base-mixin.js @@ -101,12 +101,12 @@ export default { }, scrollToPageTop() { const container = document.getElementsByClassName("page-container-grouped-styles")[0]; - container.scrollTo({ top: 0, left: 0, behavior: "smooth" }); + container.scrollTo({ top: 0, left: 0, behavior: "smooth" }); }, scrollToPageBottom() { const container = document.getElementsByClassName("page-container-grouped-styles")[0]; - container.scrollTo({ top: container.scrollHeight, left: 0, behavior: "smooth" }); - } + container.scrollTo({ top: container.scrollHeight, left: 0, behavior: "smooth" }); + }, }, computed: { storeActions() {