Create PreviewTable.vue
This commit is contained in:
parent
2193a0638d
commit
b68fe4e596
@ -65,10 +65,13 @@ export default {
|
|||||||
},
|
},
|
||||||
changeTitle(value, row) {
|
changeTitle(value, row) {
|
||||||
row.title = value
|
row.title = value
|
||||||
if (row.picture?.startsWith('blob:')) {
|
URL.revokeObjectURL(row.file);
|
||||||
URL.revokeObjectURL(row.picture);
|
var reader = new FileReader();
|
||||||
|
reader.readAsArrayBuffer(row.blob);
|
||||||
|
let oldFlie: Uint8Array
|
||||||
|
reader.onload = function(){
|
||||||
|
oldFile = this.result;
|
||||||
}
|
}
|
||||||
row.picture = file.url;
|
|
||||||
},
|
},
|
||||||
changeArtist(file, row) {
|
changeArtist(file, row) {
|
||||||
if (row.picture?.startsWith('blob:')) {
|
if (row.picture?.startsWith('blob:')) {
|
||||||
|
Reference in New Issue
Block a user