We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab486e8 commit 6548698Copy full SHA for 6548698
templates/vue/utils/fetch.js
@@ -12,7 +12,11 @@ export default function (id, options = {}) {
12
options.headers.set('Content-Type', MIME_TYPE)
13
}
14
15
- return fetch(new URL(id, ENTRYPOINT).toString(), options).then((response) => {
+ let entryPoint = ENTRYPOINT + (!ENTRYPOINT.endsWith('/') ? '/' : '')
16
+
17
+ console.log(entryPoint)
18
19
+ return fetch(new URL(id, entryPoint), options).then((response) => {
20
if (response.ok) return response
21
22
return response
0 commit comments