How to intercept ionic tab Jump

ionic3 is currently using tab templates

now map the tab to three pages of pageA pageB pageC.

app one entry is pageA. Currently, users who have not logged in or do not have perfect information are not allowed to browse to pageB pageC.

the current practice is to call the API in the ionicWillEnter lifecycle to determine whether the user"s data is perfect when entering pageB or pageC. If the data is not perfect, immediately jump to the data page (InfoPage).

currently, there are two problems, that is, the contents of pageB and pageC will still flash, and if you click back from InfoPage, you will return to pageB or pageC, then you will enter the life cycle of ionicWillEnter, and then you will enter InfoPage and InfoPage will not be able to return.

I don"t know if there is a good solution

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