Some Perplexity of component message passing in vue

1. I abstracted the problems I encountered, as shown in the figure

. I describe the relationship between

components as a tree.
I have an input box on the root component. I now want to push the contents of the input box to the list of component 3 when pressing enter, and the counter num PP; of component 2 asks how to do this.

that is to say, how to design components and the relationship between components is more elegant

Mar.03,2021

vuex learn about


vuex should be able to solve your problem


vuex is the solution to the problem of multi-component state sharing

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