测试了一下,你可以用js防止后退
//防止页面后退 history.pushState(null, null, document.URL); window.addEventListener('popstate', function () { history.pushState(null, null, document.URL); });
你在登陆页面那里引入此js代码即可。