With regard to router-view level 3 routing, the corresponding components are not switched out.

clipboard.png

clipboard.png

name

clipboard.png
routes: [{


routerlayoutcomponentrouter-viewname

clipboard.png
urldepartmentrouter

clipboard.png

< template >
< div id= "app" >

<router-view></router-view>

< / div >
< / template >
this is the code in App.vue. I don"t know if it has anything to do with it.


AppMain components need to have router-view
PS: id=app repeated, non-standard


did the landlord solve it?

Menu