Skip to content

Commit 733805f

Browse files
change url handling
1 parent 6d0b280 commit 733805f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/SideBarFileManager.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ export default {
250250
this.downloadFileFromURL(event.data.url)
251251
}
252252
}
253-
if (this.$route.query.file) {
254-
this.onLoadSample(this.$route.query.file)
253+
const url = document.location.search.split('?file=')[1]
254+
if (url) {
255+
this.onLoadSample(url)
255256
}
256257
},
257258
components: {

0 commit comments

Comments
 (0)