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

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