gaosp
2024-03-03 f22b4ce2acf4223fdcab6c604ce33957ee56d3f6
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') {