fix(ui): 修复登录和并发请求并统一页面展示

调整登录流程和请求处理,统一各中心的表格交互、主题样式和页面展示。
This commit is contained in:
zhanjunhao
2026-11-19 18:58:46 +08:00
parent 9b6eb1c7c4
commit 7908ed53a3
128 changed files with 4672 additions and 5391 deletions
+3 -3
View File
@@ -28,7 +28,7 @@ import {
getSystemName,
API,
clearUserData,
showSuccess,
updateAPI,
} from '../../helpers';
import { rememberUserLanguage } from '../../i18n/bootstrap';
import { useIsMobile } from './useIsMobile';
@@ -163,11 +163,11 @@ export const useHeaderBar = ({ onMobileMenuToggle, drawerOpen }) => {
// Actions
const logout = useCallback(async () => {
await API.get('/api/user/logout');
showSuccess(t('注销成功!'));
userDispatch({ type: 'logout' });
clearUserData();
updateAPI();
navigate('/org/login');
}, [navigate, t, userDispatch]);
}, [navigate, userDispatch]);
const handleLanguageChange = useCallback(
(lang) => {
@@ -276,11 +276,6 @@ export const useRedemptionsData = () => {
// Close edit modal
const closeEdit = () => {
setShowEdit(false);
setTimeout(() => {
setEditingRedemption({
id: undefined,
});
}, 500);
};
// Remove record (for UI update after deletion)