mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 02:28:54 +08:00
add readFile to fileUtils
This commit is contained in:
@@ -39,5 +39,9 @@ export default {
|
||||
|
||||
uploader.click()
|
||||
})
|
||||
},
|
||||
|
||||
readFile (path) {
|
||||
return fetch(path)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ export default {
|
||||
},
|
||||
|
||||
readPredefinedQueries () {
|
||||
return fetch('./queries.json')
|
||||
return fu.readFile('./queries.json')
|
||||
.then(resp => {
|
||||
return resp.json()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user