Create PreviewTable.vue

This commit is contained in:
xhacker-zzz 2021-12-22 20:58:03 +08:00 committed by GitHub
parent 2193a0638d
commit b68fe4e596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,10 +65,13 @@ export default {
},
changeTitle(value, row) {
row.title = value
if (row.picture?.startsWith('blob:')) {
URL.revokeObjectURL(row.picture);
URL.revokeObjectURL(row.file);
var reader = new FileReader();
reader.readAsArrayBuffer(row.blob);
let oldFlie: Uint8Array
reader.onload = function(){
oldFile = this.result;
}
row.picture = file.url;
},
changeArtist(file, row) {
if (row.picture?.startsWith('blob:')) {