Commit 24d10e06 authored by 神楽坂玲奈's avatar 神楽坂玲奈

卡组删除

parent 386830a0
...@@ -264,8 +264,10 @@ export class YGOProComponent implements OnInit { ...@@ -264,8 +264,10 @@ export class YGOProComponent implements OnInit {
} }
async delete_deck(deck: string) { async delete_deck(deck: string) {
await new Promise(resolve => fs.unlink(path.join(this.app.local!.path, 'deck', deck + '.ydk'), resolve)); if (confirm('确认删除?')) {
return this.refresh() await new Promise(resolve => fs.unlink(path.join(this.app.local!.path, 'deck', deck + '.ydk'), resolve));
return this.refresh()
}
} }
async fix_fonts(data: SystemConf) { async fix_fonts(data: SystemConf) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment