Bläddra i källkod

上传问价不得大于10提示

lifanagju_citu 6 månader sedan
förälder
incheckning
4ed2c303b4

+ 1 - 0
src/locales/en.js

@@ -25,6 +25,7 @@ export default {
     uploadPictures: 'upload pictures',
     uploadSucMsg: 'Upload successful',
     uploadErrMsg: 'Upload failed',
+    fileSizeExceed10: 'The file size cannot exceed 10M',
     fileSizeExceed: 'The file size cannot exceed 20M',
     fileFormatIncorrect: 'The uploaded file format is incorrect',
     refresh: 'Refresh',

+ 1 - 0
src/locales/zh-CN.js

@@ -25,6 +25,7 @@ export default {
     uploadPictures: '上传图片',
     uploadSucMsg: '上传成功',
     uploadErrMsg: '上传失败',
+    fileSizeExceed10: '文件大小不能超过10M',
     fileSizeExceed: '文件大小不能超过20M',
     fileFormatIncorrect: '上传的文件格式不正确',
     refresh: '刷新',

+ 1 - 1
src/views/recruit/enterprise/entInfoSetting/informationSettingsComponents/enterpriseAlbum.vue

@@ -106,7 +106,7 @@ const handleUploadFile = async (e) => {
   const file = e.target.files[0]
   const size = file.size
   if (size / (1024*1024) > 10) {
-    Snackbar.warning(t('common.fileSizeExceed'))
+    Snackbar.warning(t('common.fileSizeExceed10'))
     return
   }
   const formData = new FormData()