login page fix

This commit is contained in:
maojindao55
2025-08-23 22:53:37 +08:00
parent 515838200f
commit f122090349

View File

@@ -16,7 +16,7 @@ export default function Login() {
React.useEffect(() => {
const isLogin = localStorage.getItem('token');
if (isLogin) {
if (isLogin || window.APP_CONFIG.AUTH_ACCESS === '0') {
window.location.href = '/'; // 由于是 Vite 多页面,这里使用 window.location.href
}
}, []);