mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
fix: 🐛 sync tab when getting last timeline
This commit is contained in:
parent
d2a3a3d4dd
commit
d828274b74
1 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,11 @@ const rootEl = $ref<HTMLElement>();
|
|||
|
||||
let queue = $ref(0);
|
||||
const src = $computed({
|
||||
get: () => defaultStore.reactiveState.tl.value.src,
|
||||
get: () => {
|
||||
const lastSrc = defaultStore.reactiveState.tl.value.src;
|
||||
syncSlide(timelines.indexOf(lastSrc));
|
||||
return lastSrc;
|
||||
},
|
||||
set: (x) => {
|
||||
saveSrc(x);
|
||||
syncSlide(timelines.indexOf(x));
|
||||
|
|
Loading…
Reference in a new issue