.js文件
page({
data: {
demoList: []
},
async getDemoList () {
const that = this
const res = await API.getDemo() // api接口
let suggestFollow = res.data
that.setData({
demoList
})
console.log('demoList...', this.data.demoList)
}
})