fix(route): empty alias
This commit is contained in:
parent
787656a1ee
commit
cd99b522e7
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue