Skip to content

Commit f122090

Browse files
committed
login page fix
1 parent 5158382 commit f122090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/login/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function Login() {
1616

1717
React.useEffect(() => {
1818
const isLogin = localStorage.getItem('token');
19-
if (isLogin) {
19+
if (isLogin || window.APP_CONFIG.AUTH_ACCESS === '0') {
2020
window.location.href = '/'; // 由于是 Vite 多页面,这里使用 window.location.href
2121
}
2222
}, []);

0 commit comments

Comments
 (0)