【bug】

1. 文件提示词问题
pet_门口门禁
shanao 2025-01-21 09:20:38 +08:00
parent bf7387a6ba
commit 550875da40
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ export default {
beforeUpload(file) {
const isJPG = file.type === 'image/jpeg' || file.type === 'image/jpg' || file.type === 'image/png'
if (!isJPG) {
this.$message.error('上传头像图片只能是 jpg/jpeg/png 格式!')
this.$message.error('上传图片只能是 jpg/jpeg/png 格式!')
}
//
const isLt2M = file.size / 1024 / 1024 < 2