perf: 删除没有必要的 message key

This commit is contained in:
xingyu4j
2025-05-06 22:06:25 +08:00
parent 60bd4a13b1
commit 4741819826
90 changed files with 146 additions and 414 deletions

View File

@@ -52,10 +52,7 @@ async function onMaster(row: InfraFileConfigApi.FileConfig) {
});
try {
await updateFileConfigMaster(row.id as number);
message.success({
content: $t('ui.actionMessage.operationSuccess'),
key: 'action_process_msg',
});
message.success($t('ui.actionMessage.operationSuccess'));
onRefresh();
} catch {
hideLoading();
@@ -95,10 +92,7 @@ async function onDelete(row: InfraFileConfigApi.FileConfig) {
});
try {
await deleteFileConfig(row.id as number);
message.success({
content: $t('ui.actionMessage.deleteSuccess', [row.name]),
key: 'action_process_msg',
});
message.success($t('ui.actionMessage.deleteSuccess', [row.name]));
onRefresh();
} catch {
hideLoading();