mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
shell 增加国际化
This commit is contained in:
1 parent
0ee0b83207
commit
b5a5fb3be6
16 files changed
+420
-94
No files matched your search
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user