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
+4
View File
@@ -39,5 +39,9 @@ export default {
uploader.click()
})
},
readFile (path) {
return fetch(path)
}
}
+1 -1
View File
@@ -92,7 +92,7 @@ export default {
},
readPredefinedQueries () {
return fetch('./queries.json')
return fu.readFile('./queries.json')
.then(resp => {
return resp.json()
})