fix API doesn't bring checksum (#323)

This commit is contained in:
Andy Lee 2025-06-03 20:58:03 +08:00 committed by GitHub
parent 7ecc9c320d
commit 9e015ec3b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -193,7 +193,7 @@ export default {
spec: { spec: {
sourceType: UPLOAD, sourceType: UPLOAD,
displayName: '', displayName: '',
checksum: '' checksum: this.imageValue?.spec?.checksum || '',
}, },
}); });
}, },
@ -296,7 +296,7 @@ export default {
} else if (e?.code === 'ERR_CANCELED') { } else if (e?.code === 'ERR_CANCELED') {
this.errors.push(this.$store.getters['i18n/t']('harvester.setting.upgrade.cancelUpload')); this.errors.push(this.$store.getters['i18n/t']('harvester.setting.upgrade.cancelUpload'));
} else { } else {
this.errors = [e?.message] || exceptionToErrorsArray(e); this.errors = exceptionToErrorsArray(e);
} }
this.file = {}; this.file = {};
this.uploadImageId = ''; this.uploadImageId = '';