From 72ee2e3fdcdd8d4830c0fd272f652d3b0cc2fdec Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 9 Sep 2022 13:56:42 -0700 Subject: [PATCH] fix: :bug: gay gay homosexual gay --- package.json | 2 +- packages/client/src/pages/explore.vue | 7 ++++--- packages/client/src/pages/timeline.vue | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a116432658..882b081315 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.118.1-calc.2-rc.22", + "version": "12.118.1-calc.2-rc.23", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/explore.vue b/packages/client/src/pages/explore.vue index 6e5aec75e9..ab8b40b787 100644 --- a/packages/client/src/pages/explore.vue +++ b/packages/client/src/pages/explore.vue @@ -60,11 +60,12 @@ const props = defineProps<{ }>(); let featured = $ref('featured'); +const tabs = ['featured', 'users', 'search']; -const tab = $computed({ +let tab = $computed({ get: () => featured, set: (x) => { - syncSlide(['featured', 'users', 'search'].indexOf(x)); + syncSlide(tabs.indexOf(x)); }, }); @@ -113,7 +114,7 @@ function setSwiperRef(swiper) { } function onSlideChange() { - saveSrc(timelines[swiperRef.activeIndex]); + tab = tabs[swiperRef.activeIndex]; } function syncSlide(index) { diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 01f37d6e49..c441cfceac 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -276,6 +276,7 @@ let swiperRef = null; function setSwiperRef(swiper) { swiperRef = swiper; + syncSlide(timelines.indexOf(src)); } function onSlideChange() { @@ -286,7 +287,6 @@ function syncSlide(index) { swiperRef.slideTo(index); } -