1
0
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:
lana-k
2021-01-26 17:38:19 +01:00
parent 3aa9c144e3
commit 083386383e
2 changed files with 5 additions and 1 deletions

View File

@@ -39,5 +39,9 @@ export default {
uploader.click()
})
},
readFile (path) {
return fetch(path)
}
}

View File

@@ -92,7 +92,7 @@ export default {
},
readPredefinedQueries () {
return fetch('./queries.json')
return fu.readFile('./queries.json')
.then(resp => {
return resp.json()
})