How does the js in Mini Program's custom component control the setData of the current page?

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 : {
        
    }
})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ad3e-2c22d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ad3e-2c22d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?