We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5158382 commit f122090Copy full SHA for f122090
src/pages/login/index.jsx
@@ -16,7 +16,7 @@ export default function Login() {
16
17
React.useEffect(() => {
18
const isLogin = localStorage.getItem('token');
19
- if (isLogin) {
+ if (isLogin || window.APP_CONFIG.AUTH_ACCESS === '0') {
20
window.location.href = '/'; // 由于是 Vite 多页面,这里使用 window.location.href
21
}
22
}, []);
0 commit comments