check fetch
This commit is contained in:
parent
6432fae862
commit
4031cc654c
Binary file not shown.
|
@ -43,7 +43,14 @@ Vue.component('Accordeon', {
|
||||||
|
|
||||||
|
|
||||||
const jsonurl = "asset/db.json"
|
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({
|
let vm = new Vue({
|
||||||
el: '#root',
|
el: '#root',
|
||||||
|
|
Loading…
Reference in New Issue