Computed of vue

In

vue, the parent = "the child passes parameters through the props, but I think after the child layout receives the props data, it triggers an operation to store the finished data in a param1 in the data. And param1 will return out in computed. The whole process of
I want to automatically trigger and complete when the parent = "son passes parameters through props, and then after binding computed and dom in the child layout, trigger computed to return param1 and pass it to the grandchild layout.

the problem now is, how to trigger an operation to complete the encapsulation of param1 after receiving props data?

in fact, in weex, the parameter passed by parent = child will only trigger the set method of computed, and when computed and dom are bound in the child layout, only the get method of computed will be triggered. This set of bindings is triggered automatically. The function of computed in vue is not consistent with that of weex.

Please also give me your advice. Thank you

Mar.02,2021

mounted and watch both execute


first of all, it is recommended to consider vuex, if not, add a watch to the grandchild component

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