From 2ff78829c427e29e14974250d23d3653b941daa2 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Thu, 6 Apr 2023 19:09:50 -0700 Subject: [PATCH] fix --- package.json | 2 +- packages/client/src/pages/timeline.vue | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 5826ad0f1f..b5c2b21a38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "13.2.0-dev35", + "version": "13.2.0-dev34", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 900d842650..201b4ad131 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -49,7 +49,7 @@ @@ -65,7 +65,7 @@ v-else ref="tl" class="tl" - :src="discoverSrc" + :src="discoverTab" :sound="true" @queue="queueUpdated" /> @@ -96,9 +96,6 @@ import { deviceKind } from '@/scripts/device-kind'; import 'swiper/scss'; import 'swiper/scss/virtual'; -let forYouTab = $ref('home'); -let discoverTab = $ref('hot'); - if (defaultStore.reactiveState.tutorial.value !== -1) { os.popup(XTutorial, {}, {}, 'closed'); } @@ -168,18 +165,18 @@ const src = $computed({ syncSlide(timelines.indexOf(x)); }, }); -const forYouSrc = $computed({ +const forYouTab = $computed({ get: () => defaultStore.reactiveState.forYouTl.value.src, set: (x) => saveForYouSrc(x), }); -const discoverSrc = $computed({ +const discoverTab = $computed({ get: () => defaultStore.reactiveState.discoverTl.value.src, set: (x) => saveDiscoverSrc(x), }); watch($$(src), () => (queue = 0)); -watch($$(forYouSrc), () => (queue = 0)); -watch($$(discoverSrc), () => (queue = 0)); +watch($$(forYouTab), () => (queue = 0)); +watch($$(discoverTab), () => (queue = 0)); function queueUpdated(q: number): void { queue = q;