Update PreviewTable.vue

This commit is contained in:
xhacker-zzz 2021-12-22 22:48:44 +08:00 committed by GitHub
parent ae4c5a9782
commit 28b44fea07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ export default {
}
row.file = URL.createObjectURL(row.blob);
},
changeCover(file, row) {
async changeCover(file, row) {
if (row.picture?.startsWith('blob:')) {
URL.revokeObjectURL(row.picture);
}
@ -97,12 +97,12 @@ export default {
URL.revokeObjectURL(row.file);
await regenerate(row);
},
changeArtist(file, row) {
async changeArtist(file, row) {
row.artist = value
URL.revokeObjectURL(row.file);
await regenerate(row);
},
changeAlbum(file, row) {
async changeAlbum(file, row) {
row.album = value
URL.revokeObjectURL(row.file);
await regenerate(row);