There was no problem using $ref to call the subcomponent method, but this call cannot be called

< H2 > there was no problem using $ref to call subcomponent methods, but this call failed to call < / H2 >. < H1 > the parent component prints out the this.$refs, method to find the child component, and the length is empty < / H1 >

there is no problem with the writing of the parent component and the child component. Print it out, and the length of the method in the child component is empty

clipboard.png

Dec.02,2021

do you want to call this Synchronousdata () method? The length of a function is determined by the number of parameters. Does your function have parameters?
if you want to call this method, you can:

this.$refs.subject.Synchronousdata();
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-1eaeeef-47ff8.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-1eaeeef-47ff8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?