|
@@ -196,7 +196,7 @@ export default defineComponent({
|
|
|
this.xmlFileLoading = true
|
|
|
postMessage({ api: 'chooseFile', content: { type: 'xml' } }, evt => {
|
|
|
// @ts-ignore
|
|
|
- this.xmlFileUrl = evt?.fileUrl || ''
|
|
|
+ this.xmlFileUrl = evt?.fileUrl || this.this.xmlFileUrl || ''
|
|
|
this.xmlFileLoading = false
|
|
|
})
|
|
|
},
|
|
@@ -204,7 +204,7 @@ export default defineComponent({
|
|
|
this.midiLoading = true
|
|
|
postMessage({ api: 'chooseFile', content: { type: 'midi' } }, evt => {
|
|
|
// @ts-ignore
|
|
|
- this.midiUrl = evt?.fileUrl || ''
|
|
|
+ this.midiUrl = evt?.fileUrl || this.midiUrl || ''
|
|
|
this.midiLoading = false
|
|
|
// this.midiUrl = path
|
|
|
})
|