|
@@ -36,23 +36,25 @@ export default {
|
|
|
const { data = {}, error_code: code } = await getEntFollowList(payload)
|
|
|
if (code === 0 && data) {
|
|
|
const { list: rList = [] } = data
|
|
|
- const list = rList.map(v => {
|
|
|
- // const visited = this.pathVisited(
|
|
|
- // this.createPathItem(
|
|
|
- // '/article/content/*.html',
|
|
|
- // `id=${v.s_entId}`
|
|
|
- // )
|
|
|
- // )
|
|
|
- return {
|
|
|
- ...v,
|
|
|
- // visited,
|
|
|
- _id: v.s_entId,
|
|
|
- title: v.s_entname,
|
|
|
- unread: false,
|
|
|
- time: v.l_lastpushtime ? v.l_lastpushtime * 1000 : 0
|
|
|
- }
|
|
|
- })
|
|
|
- commit('changeList', list)
|
|
|
+ if (Array.isArray(rList)) {
|
|
|
+ const list = rList.map(v => {
|
|
|
+ // const visited = this.pathVisited(
|
|
|
+ // this.createPathItem(
|
|
|
+ // '/article/content/*.html',
|
|
|
+ // `id=${v.s_entId}`
|
|
|
+ // )
|
|
|
+ // )
|
|
|
+ return {
|
|
|
+ ...v,
|
|
|
+ // visited,
|
|
|
+ _id: v.s_entId,
|
|
|
+ title: v.s_entname,
|
|
|
+ unread: false,
|
|
|
+ time: v.l_lastpushtime ? v.l_lastpushtime * 1000 : 0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ commit('changeList', list)
|
|
|
+ }
|
|
|
}
|
|
|
commit('changeLoading', false)
|
|
|
commit('changeLoaded', true)
|