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">
|
<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>
|
||||||
|
|||||||
@@ -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'
|
||||||
}
|
}
|
||||||
}) || []
|
}) || []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user