added open artwork in browser

This commit is contained in:
booploops 2022-02-19 01:29:38 -08:00
parent 02ba9a7c42
commit cbe76cc19d
2 changed files with 24 additions and 1 deletions

View file

@ -421,6 +421,16 @@ const app = new Vue({
}
app.routeView(item)
},
saveFile(fileName,urlFile){
let a = document.createElement("a");
a.style = "display: none";
document.body.appendChild(a);
a.href = urlFile;
a.download = fileName;
a.click();
window.URL.revokeObjectURL(url);
a.remove();
},
async showMenuPanel(data, event) {
app.menuPanel.visible = true;
app.menuPanel.content.name = data.name ?? "";