Skip to content

Commit

Permalink
fix(route): empty alias
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Feb 19, 2017
1 parent 787656a commit cd99b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/route/index.js
Expand Up @@ -20,7 +20,7 @@ export function routeMixin (proto) {
const { config } = this
const base = getBasePath(config.basePath)

path = getAlias(path, config.alias)
path = config.alias ? getAlias(path, config.alias) : path
path = getFileName(path)
path = path === '/README.md' ? (config.homepage || path) : path
path = isAbsolutePath(path) ? path : getPath(base, path)
Expand Down

0 comments on commit cd99b52

Please sign in to comment.