fix: 完善平台国际化覆盖
This commit is contained in:
@@ -106,8 +106,8 @@ async function uploadOne(file: File) {
|
||||
...list.value,
|
||||
{ key: res.key, url: res.url, name: props.captionable ? '' : res.name, type },
|
||||
]);
|
||||
} catch (err) {
|
||||
message.error((err as Error)?.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