1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

refactor reading predefined queries

This commit is contained in:
lana-k
2021-01-21 13:25:29 +01:00
parent 6886b7903f
commit 8652edc139
3 changed files with 16 additions and 30 deletions

View File

@@ -113,5 +113,12 @@ export default {
document.body.append(uploader)
}
uploader.click()
},
readPredefinedQueries () {
return fetch('./queries.json')
.then(resp => {
return resp.json()
})
}
}