How do components that are far apart in a vue project communicate?

can be understood as a distant relative component.
for example, there are An and B under App.
A below are Aa, Ab, Ac.
Aa below are Aaa, Aab, Aac.
. Under
B are Ba, Bb, Bc.
.
now, an operation in Aaaa is going to modify a property of Babc. What should I do?

Dec.20,2021

is far apart, indicating that the project is cumbersome enough. It is recommended that the project use vuex


. Why not say nesting. Hee hee.
either not nested.
Let's use the upstairs solution.
vuex is actually quite easy to use. Because with it, you don't have to worry about component communication at all.


has already used vuex

Menu