How to switch routes with tabBar tags in dva+antd mobile

< hr > The tabBar in

antd mobile is created according to the following number of menu. The same div, is created by switching display modules between hiding and reality.
that is, each switching menu is the display and hiding of div (the display and hiding of corresponding modules), so the route will not change. Accordingly, the model bound through dva will not initialize
. Does it have to load a tarBar on each page and then switch routes by clicking menu

?
Jun.17,2021

you don't have to switch routes just to initialize model. When configuring routing, just initialize all the model needed in the page at once.

for example, register both user and login model under the root path.

clipboard.png

Menu