Mini Program's data transfer problem

var postsData = require (".. /.. / data/posts-data.js");

Page ({
data: {

)
autoplay: true,
circular: true

},
onLoad: function (options) {

this.data.post_key = postsData.postList //,
//this.setData({post_key: postsData.postList})
}

})

<block wx:for="{{post_key}}">

document is written in bold

directly modifying this.data without calling this.setData cannot change the state of the page, and it will cause data inconsistency.
Menu