fix: chinese filename build

pull/262/head
heny 5 years ago
parent c9154854ed
commit f494d268eb

@ -12,6 +12,7 @@ export function joinPath(base: string, path: string): string {
*/ */
export function pathToFile(path: string): string { export function pathToFile(path: string): string {
let pagePath = path.replace(/\.html$/, '') let pagePath = path.replace(/\.html$/, '')
pagePath = decodeURIComponent(pagePath)
if (pagePath.endsWith('/')) { if (pagePath.endsWith('/')) {
pagePath += 'index' pagePath += 'index'
} }

Loading…
Cancel
Save