Files
fesatcodeMiniApp/pages/subpages/collectionLog/collectionLog.js

24 lines
410 B
JavaScript
Raw Normal View History

2025-08-14 14:52:01 +08:00
import userArticleApi from "../../../api/userArticleApi"
Page({
data: {
articles: []
},
goback(){
wx.navigateBack(1)
},
onLoad(){
userArticleApi.getUserCollectionArticleList().then(res=>{
if (res.data.length>0) {
res.data.forEach(item=>{
item.tags = JSON.parse(item.tags)
})
}
this.setData({
articles: res.data
})
})
}
})