Page A is the login page. After successfully logging in, page A is redirected to homepage B, but why does it still return to the login page when pressing back? Is it because of a cache problem or other reasons? Please give me some advice
If you passrouter.push(location)的方式来跳转到B页面的话,改成router.replace(location) that’s it.
router.push(location)
router.replace(location)
If you pass
router.push(location)
的方式来跳转到B页面的话,改成router.replace(location)
that’s it.