Skip to content

Commit cd99b52

Browse files
committed
fix(route): empty alias
1 parent 787656a commit cd99b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/route/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function routeMixin (proto) {
2020
const { config } = this
2121
const base = getBasePath(config.basePath)
2222

23-
path = getAlias(path, config.alias)
23+
path = config.alias ? getAlias(path, config.alias) : path
2424
path = getFileName(path)
2525
path = path === '/README.md' ? (config.homepage || path) : path
2626
path = isAbsolutePath(path) ? path : getPath(base, path)

0 commit comments

Comments
 (0)