完善投票编辑模式及收藏/历史列表兜底展示

This commit is contained in:
2026-08-06 00:12:23 +08:00
parent 315bc474d6
commit 7257f09df0
4 changed files with 48 additions and 25 deletions
+1 -4
View File
@@ -40,7 +40,7 @@
:data="getNewItem(item)"></not-cover>
<right-small-cover v-else-if="item.thumbnail && item.thumbnail.length === 1" :ctype="'historyList'"
:data="getNewItem(item)"></right-small-cover>
<three-cover v-else-if="item.thumbnail && item.thumbnail.length === 3" :ctype="'historyList'"
<three-cover v-else :ctype="'historyList'"
:data="getNewItem(item)"></three-cover>
</view>
</template>
@@ -145,9 +145,6 @@
if (data[0].article_id) {
const tempListData = data.map(item => {
if (item.article_id.length === 0) return
if (typeof item.article_id.thumbnail === 'string') {
item.article_id[0].thumbnail = [item.article_id[0].thumbnail]
}
item.article_id[0].user_id = item.user_id[0]
item.article_id[0].last_view_time = new Date(item.last_view_time).getTime()
return item.article_id[0]