shell 增加国际化

This commit is contained in:
whyour
2026-06-14 16:45:53 +08:00
parent 0ee0b83207
commit b5a5fb3be6
16 changed files with 420 additions and 94 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ export default function () {
if (code === 200 && data.username) {
setUser(data);
if (location.pathname === '/') {
history.push('/crontab');
history.push('/dashboard');
}
}
needLoading && setLoading(false);
@@ -218,7 +218,7 @@ export default function () {
if (['/login', '/initialization', '/error'].includes(location.pathname)) {
if (systemInfo?.isInitialized && location.pathname === '/initialization') {
history.push('/crontab');
history.push('/dashboard');
}
if (systemInfo || location.pathname === '/error') {
+1 -1
View File
@@ -54,7 +54,7 @@ const Error = () => {
useEffect(() => {
if (user && user.username) {
history.push('/crontab');
history.push('/dashboard');
}
}, [user]);