window.onload = function (){ if (!localStorage.getItem(window._AUTH_INFO_)){ window.location.href= window.location.origin+'/login.html'; } }