fix collapse

This commit is contained in:
2026-08-02 14:21:28 +07:00
parent 491a69e980
commit 33501fe4c7
4 changed files with 9 additions and 6 deletions
+5 -2
View File
@@ -34,6 +34,8 @@ const isAtBottom = () => {
};
async function getStory() {
const oldStory = story.value
const res = await client.GetTeamStory({
id: Number(teamId),
password: password as string
@@ -52,10 +54,11 @@ async function getStory() {
const oldCount = story.value.places.length
story.value = {
places: res.story!.places?.map((item) => {
places: res.story!.places?.map((item, i) => {
console.log(oldStory?.places[i]?.mode)
return {
place: item,
mode: 'show'
mode: oldStory?.places[i]?.mode || 'show'
}
}) || []
}