fix: 完善平台国际化覆盖
This commit is contained in:
@@ -106,8 +106,8 @@ async function uploadOne(file: File) {
|
||||
...items.value,
|
||||
{ key: res.key, url: res.url, name: res.name || file.name, type: props.type },
|
||||
]);
|
||||
} catch (err: any) {
|
||||
message.error(err?.message || 'upload failed');
|
||||
} catch {
|
||||
message.error(t('common.msg.uploadFailed'));
|
||||
} finally {
|
||||
uploading.value = uploading.value.filter((u) => u.id !== holder.id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user