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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -5,8 +5,8 @@
<link rel="icon" href="/favicon.ico"> <link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Вечерний детектив</title> <title>Вечерний детектив</title>
<script type="module" crossorigin src="/assets/index-DNX1YyIr.js"></script> <script type="module" crossorigin src="/assets/index-CmN4JLbq.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CRlFISLi.css"> <link rel="stylesheet" crossorigin href="/assets/index-B11iM68d.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
+5 -2
View File
@@ -34,6 +34,8 @@ const isAtBottom = () => {
}; };
async function getStory() { async function getStory() {
const oldStory = story.value
const res = await client.GetTeamStory({ const res = await client.GetTeamStory({
id: Number(teamId), id: Number(teamId),
password: password as string password: password as string
@@ -52,10 +54,11 @@ async function getStory() {
const oldCount = story.value.places.length const oldCount = story.value.places.length
story.value = { story.value = {
places: res.story!.places?.map((item) => { places: res.story!.places?.map((item, i) => {
console.log(oldStory?.places[i]?.mode)
return { return {
place: item, place: item,
mode: 'show' mode: oldStory?.places[i]?.mode || 'show'
} }
}) || [] }) || []
} }