更新 html/index.html

main
amuliang 2023-11-04 14:28:15 +00:00
parent bbe17b148c
commit 7ddc23a4fc
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,7 @@
let current_item = this.current_item; let current_item = this.current_item;
let title = current_item.title.replace(/[\/\\\:]+/g, '_'); let title = current_item.title.replace(/[\/\\\:]+/g, '_');
let author = current_item.author.replace(/[\/\\\:]+/g, '_'); let author = current_item.author.replace(/[\/\\\:]+/g, '_');
return this.store_path_root + this.store_path.replaceAll("{title}", title).replaceAll("{author}", author) + '.' + this.current_item.extension; return this.store_path_root + this.store_path.replaceAll("{title}", title).replaceAll("{author}", author) + (!!this.current_item.extension?'.' + this.current_item.extension : '');
} }
}, },
methods: { methods: {
@ -254,6 +254,7 @@
}); });
}else { }else {
this.handleStore(); this.handleStore();
this.is_storing = false;
} }
}, },
async handleCheckMusicExists() { async handleCheckMusicExists() {