首页 > 问答 > 正文
A页面为登录页面,A页面登录成功重定向到首页B,但是按后退为什么还是回到登录页面,因为缓存问题吗,还是其他原因,求高人指点
给我你的怀抱2017-05-19 10:45:01
如果你是通过router.push(location)的方式来跳转到B页面的话,改成router.replace(location)即可。
router.push(location)
router.replace(location)