From cd99b522e79a611fe6de6344c1a3b5cc9176f6f9 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Sun, 19 Feb 2017 14:54:22 +0800 Subject: [PATCH] fix(route): empty alias --- src/core/route/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/route/index.js b/src/core/route/index.js index 1dd09a976..7c4061ea2 100644 --- a/src/core/route/index.js +++ b/src/core/route/index.js @@ -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)