In vue, why can't my child component monitor changes in the data of the parent component?

parent component code:

occurrence of occurrence

Apr.04,2021

try using Vue.set (target, key, value)


I don't see the attribute leagueBettingObjectId from the code you gave me, let alone any changes.
your console.log ('outer object changes 1234566') is not listening on the attribute leagueBettingObjectId either. The reason why there is output every time is because bettingObjectProp is accessed every time.

if there is no leagueBettingObjectId passed to the bettingObjectId of the child component, the child component will naturally not be able to listen for its changes.


resolved,

because I didn't use the computed property after I defined it, I have to use it before I can detect a change

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-7c31e0-1fbdf.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-7c31e0-1fbdf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?