fix
This commit is contained in:
parent
468b14be54
commit
2ff78829c4
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "13.2.0-dev35",
|
"version": "13.2.0-dev34",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
<XTimeline
|
<XTimeline
|
||||||
ref="tl"
|
ref="tl"
|
||||||
class="tl"
|
class="tl"
|
||||||
:src="forYouSrc"
|
:src="forYouTab"
|
||||||
:sound="true"
|
:sound="true"
|
||||||
@queue="queueUpdated"
|
@queue="queueUpdated"
|
||||||
/>
|
/>
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
v-else
|
v-else
|
||||||
ref="tl"
|
ref="tl"
|
||||||
class="tl"
|
class="tl"
|
||||||
:src="discoverSrc"
|
:src="discoverTab"
|
||||||
:sound="true"
|
:sound="true"
|
||||||
@queue="queueUpdated"
|
@queue="queueUpdated"
|
||||||
/>
|
/>
|
||||||
|
@ -96,9 +96,6 @@ import { deviceKind } from '@/scripts/device-kind';
|
||||||
import 'swiper/scss';
|
import 'swiper/scss';
|
||||||
import 'swiper/scss/virtual';
|
import 'swiper/scss/virtual';
|
||||||
|
|
||||||
let forYouTab = $ref('home');
|
|
||||||
let discoverTab = $ref('hot');
|
|
||||||
|
|
||||||
if (defaultStore.reactiveState.tutorial.value !== -1) {
|
if (defaultStore.reactiveState.tutorial.value !== -1) {
|
||||||
os.popup(XTutorial, {}, {}, 'closed');
|
os.popup(XTutorial, {}, {}, 'closed');
|
||||||
}
|
}
|
||||||
|
@ -168,18 +165,18 @@ const src = $computed({
|
||||||
syncSlide(timelines.indexOf(x));
|
syncSlide(timelines.indexOf(x));
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const forYouSrc = $computed({
|
const forYouTab = $computed({
|
||||||
get: () => defaultStore.reactiveState.forYouTl.value.src,
|
get: () => defaultStore.reactiveState.forYouTl.value.src,
|
||||||
set: (x) => saveForYouSrc(x),
|
set: (x) => saveForYouSrc(x),
|
||||||
});
|
});
|
||||||
const discoverSrc = $computed({
|
const discoverTab = $computed({
|
||||||
get: () => defaultStore.reactiveState.discoverTl.value.src,
|
get: () => defaultStore.reactiveState.discoverTl.value.src,
|
||||||
set: (x) => saveDiscoverSrc(x),
|
set: (x) => saveDiscoverSrc(x),
|
||||||
});
|
});
|
||||||
|
|
||||||
watch($$(src), () => (queue = 0));
|
watch($$(src), () => (queue = 0));
|
||||||
watch($$(forYouSrc), () => (queue = 0));
|
watch($$(forYouTab), () => (queue = 0));
|
||||||
watch($$(discoverSrc), () => (queue = 0));
|
watch($$(discoverTab), () => (queue = 0));
|
||||||
|
|
||||||
function queueUpdated(q: number): void {
|
function queueUpdated(q: number): void {
|
||||||
queue = q;
|
queue = q;
|
||||||
|
|
Loading…
Reference in New Issue