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:
@@ -113,5 +113,12 @@ export default {
|
||||
document.body.append(uploader)
|
||||
}
|
||||
uploader.click()
|
||||
},
|
||||
|
||||
readPredefinedQueries () {
|
||||
return fetch('./queries.json')
|
||||
.then(resp => {
|
||||
return resp.json()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user