forked from dbroqua/MusicTopus
18 lines
344 B
JavaScript
18 lines
344 B
JavaScript
|
Vue.createApp({
|
||
|
data() {
|
||
|
return {
|
||
|
format: 'xml',
|
||
|
}
|
||
|
},
|
||
|
created() {
|
||
|
},
|
||
|
destroyed() {
|
||
|
},
|
||
|
methods: {
|
||
|
exportCollection(event) {
|
||
|
event.preventDefault();
|
||
|
|
||
|
window.open(`/api/v1/albums?exportFormat=${this.format}`, '_blank');
|
||
|
}
|
||
|
},
|
||
|
}).mount('#exporter');
|