check fetch

This commit is contained in:
ed barz 2022-05-15 00:17:22 +02:00
parent 6432fae862
commit 4031cc654c
2 changed files with 8 additions and 1 deletions

Binary file not shown.

View File

@ -43,7 +43,14 @@ Vue.component('Accordeon', {
const jsonurl = "asset/db.json"
let db2 = fetch(jsonurl).text()
async function getJson(url) {
let obj = await fetch(url)
let txt = await obj.text()
return txt
}
let db2 = getJson(jsonurl)
let vm = new Vue({
el: '#root',