1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +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() uploader.click()
}) })
},
readFile (path) {
return fetch(path)
} }
} }

View File

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