完善投票编辑模式及收藏/历史列表兜底展示
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user