generated from VLADIMIR/template_frontend
fix collapse
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
+2
-2
@@ -5,8 +5,8 @@
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Вечерний детектив</title>
|
||||
<script type="module" crossorigin src="/assets/index-DNX1YyIr.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CRlFISLi.css">
|
||||
<script type="module" crossorigin src="/assets/index-CmN4JLbq.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-B11iM68d.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
}) || []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user