I have defined a custom component, and the internal call server api calls back some data. I expect to get the callback data to api after loading the component, or directly affect the data in the object of the year!
related codes
my-component.js
Component({
methods:{
_innerHandler()
{
//do something and set data;
//index.js data
object.setData({
// ...
})
}
}
});
index.js
page({
data : {
}
})