Skip to content

Commit d3042e0

Browse files
authored
fix: use router.getFile to resolve fallback url
1 parent 3864761 commit d3042e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/fetch/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export function fetchMixin(proto) {
209209
return false;
210210
}
211211

212-
const newPath = path.replace(new RegExp(`^/${local}`), '');
212+
const newPath = this.router.getFile(path.replace(new RegExp(`^/${local}`), ''));
213213
const req = request(newPath + qs, true, requestHeaders);
214214

215215
req.then(

0 commit comments

Comments
 (0)