fix
This commit is contained in:
parent
468b14be54
commit
2ff78829c4
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "13.2.0-dev35",
|
||||
"version": "13.2.0-dev34",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<XTimeline
|
||||
ref="tl"
|
||||
class="tl"
|
||||
:src="forYouSrc"
|
||||
:src="forYouTab"
|
||||
:sound="true"
|
||||
@queue="queueUpdated"
|
||||
/>
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue