feat(route): auto remove .md extension

This commit is contained in:
qingwei.li 2017-03-25 15:52:21 +08:00
commit 8f11653b41
23 changed files with 115 additions and 114 deletions

View file

@ -70,6 +70,7 @@ export function toURL (path, params) {
route.query = merge({}, route.query, params)
path = route.path + stringifyQuery(route.query)
path = path.replace(/\.md/g, '')
return cleanPath('#/' + path)
}