perf: 优化图片上传问题显示

pull/81/head
moonrailgun 3 years ago
parent 514210e86e
commit f3309792af

@ -119,6 +119,7 @@
"k8acbe00": "Current service available",
"k8b501189": "Service Status",
"k8caee957": "Invite friends to converse",
"k8d46e81e": "Maybe the image is too large",
"k8dc86b13": "Pin",
"k8e7fb0d7": "MiniStar App initialization failed",
"k8f6dfd40": "Current members",

@ -119,6 +119,7 @@
"k8acbe00": "当前服务可用",
"k8b501189": "服务状态",
"k8caee957": "邀请好友加入会话",
"k8d46e81e": "可能是图片体积过大",
"k8dc86b13": "Pin",
"k8e7fb0d7": "MiniStar 应用初始化失败",
"k8f6dfd40": "当前成员数",

@ -37,7 +37,8 @@ export async function uploadFile(
return data;
} catch (e) {
showToasts(`${t('上传失败')}: ${_get(e, 'message')}`, 'error');
showToasts(`${t('上传失败')}: ${t('可能是图片体积过大')}`, 'error');
console.error(`${t('上传失败')}: ${_get(e, 'message')}`);
throw e;
}
}

Loading…
Cancel
Save