接口提示信息国际化

This commit is contained in:
whyour
2026-06-11 02:19:04 +08:00
parent 946731ac8d
commit 05f8fd3805
17 changed files with 206 additions and 26 deletions
+4
View File
@@ -89,6 +89,10 @@ const Other = ({
const handleLangChange = (v: string) => {
localStorage.setItem('lang', v);
const backendLang = v || navigator.language?.slice(0, 2) || 'zh';
request
.put(`${config.apiPrefix}system/config/lang`, { lang: backendLang })
.catch(() => {});
setTimeout(() => {
window.location.reload();
}, 500);