src/container/ledger/Manage-add-update.vue
@@ -363,8 +363,13 @@ cancel() { this.$emit('close') }, beforeAvatarUpload() { beforeAvatarUpload(file) { const types = ['image/jpeg','image/jpg','image/png'] const isJPG = file.type; if (!types.includes(isJPG)) { this.$message.error('上传头像图片只能是 JPG、PNG 格式!'); } return types.includes(isJPG); }, handleAvatarSuccess(res) { if (res.result === 'SUCCESS') {