fix: 函数名重复导致报错

This commit is contained in:
rd
2025-07-28 09:52:07 +08:00
parent db523230b9
commit 533d453afd
3 changed files with 8 additions and 10 deletions

View File

@ -72,9 +72,7 @@ export const getStatusInfo = (
const target = errorStatusMap.get(error_status);
statusInfo.tooltip = target?.tooltip ?? '';
statusInfo.disabledBtnTooltip = target?.btnTooltip ?? '';
}
if (status === EnumStatus.NORMAL) {
} else if (status === EnumStatus.NORMAL) {
if (to_be_expire_for_cookie === EnumExpireForCookie.NORMAL) {
statusInfo.color = normalStyle.color;
statusInfo.background = normalStyle.background;
@ -84,9 +82,7 @@ export const getStatusInfo = (
statusInfo.background = abnormalStyle.background;
statusInfo.label = '即将过期';
}
}
if (status === EnumStatus.PAUSE) {
} else if (status === EnumStatus.PAUSE) {
statusInfo.color = pauseStyle.color;
statusInfo.background = pauseStyle.background;
statusInfo.label = '暂停同步';