fix: 🐛 sync tab when getting last timeline
This commit is contained in:
parent
045fc9e1ee
commit
da112b181f
@ -128,7 +128,11 @@ const rootEl = $ref<HTMLElement>();
|
|||||||
|
|
||||||
let queue = $ref(0);
|
let queue = $ref(0);
|
||||||
const src = $computed({
|
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) => {
|
set: (x) => {
|
||||||
saveSrc(x);
|
saveSrc(x);
|
||||||
syncSlide(timelines.indexOf(x));
|
syncSlide(timelines.indexOf(x));
|
||||||
|
Loading…
Reference in New Issue
Block a user