feat(route): auto remove .md extension
This commit is contained in:
parent
6aae64fd54
commit
8f11653b41
23 changed files with 115 additions and 114 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue