fix: 函数名重复导致报错
This commit is contained in:
@ -40,7 +40,7 @@ export default defineComponent({
|
||||
</Doption>
|
||||
);
|
||||
};
|
||||
const renderSyncBtn = () => {
|
||||
const renderUpdateBtn = () => {
|
||||
return (
|
||||
<Button type="outline" size="mini" onClick={() => emit('syncData', props.item)}>
|
||||
更新数据
|
||||
@ -75,7 +75,7 @@ export default defineComponent({
|
||||
),
|
||||
}}
|
||||
></Dropdown>
|
||||
{renderSyncBtn()}
|
||||
{renderUpdateBtn()}
|
||||
</>
|
||||
);
|
||||
};
|
||||
@ -104,13 +104,15 @@ export default defineComponent({
|
||||
</>
|
||||
);
|
||||
};
|
||||
// 异常情况
|
||||
const renderAbnormal = () => {
|
||||
const { error_status } = props.item;
|
||||
const isMissing = error_status === EnumErrorStatus.MISSING;
|
||||
const isUnauthorized = error_status === EnumErrorStatus.UNAUTHORIZED;
|
||||
|
||||
const renderSyncBtn = () => {
|
||||
if (isMissing) {
|
||||
renderSyncBtn();
|
||||
return renderUpdateBtn();
|
||||
} else if ([EnumErrorStatus.REQUEST, EnumErrorStatus.FREEZE].includes(error_status)) {
|
||||
return (
|
||||
<Tooltip content={statusInfo.value.disabledBtnTooltip}>
|
||||
|
||||
@ -195,7 +195,7 @@ const tipLabel = computed(() => {
|
||||
{ count: too_many_requests_number, label: '请求频繁' },
|
||||
{ count: account_frozen_number, label: '账号被封' },
|
||||
{ count: miss_data_number, label: '数据缺失' },
|
||||
{ count: abnormal_number, label: '其他异常' },
|
||||
// { count: abnormal_number, label: '其他异常' },
|
||||
];
|
||||
|
||||
// 过滤出有异常的项并格式化
|
||||
|
||||
Reference in New Issue
Block a user