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.
2 parents d035754 + 271700f commit d9e38ccCopy full SHA for d9e38cc
templates/vue/utils/fetch.js
@@ -12,7 +12,9 @@ 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) => {
+ const entryPoint = ENTRYPOINT + (ENTRYPOINT.endsWith('/') ? '' : '/')
16
+
17
+ return fetch(new URL(id, entryPoint), options).then((response) => {
18
if (response.ok) return response
19
20
return response
0 commit comments