Skip to content

Commit c7dd650

Browse files
committed
fix: When alias contains parameters, append ext error
1 parent 3c9b3d9 commit c7dd650

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/router/history/base.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ function getFileName(path, ext) {
2626
? path
2727
: /\/$/g.test(path)
2828
? `${path}README${ext}`
29-
: `${path}${ext}`;
29+
: path.indexOf('?') === -1
30+
? `${path}${ext}`
31+
: path;
3032
}
3133

3234
export class History {

0 commit comments

Comments
 (0)