Skip to content

Commit f87d9a5

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

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

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

215217
req.then(

0 commit comments

Comments
 (0)