Skip to content

Commit 131a2ee

Browse files
committed
fix(virtual-files): fetch data as json
1 parent 44d07ff commit 131a2ee

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/devtools/client/pages/modules/virtual-files.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ watchEffect(() => {
2020
if (!fileId.value)
2121
return
2222
const url = `/_vfs.json/${encodeURIComponent(fileId.value)}`
23-
fetch(url)
23+
fetch(url, {
24+
headers: {
25+
accept: 'application/json',
26+
},
27+
})
2428
.then(i => i.json())
2529
.then(i => current.value = i.current)
2630
})

0 commit comments

Comments
 (0)