Skip to content

Commit

Permalink
fix: chinese filenames can't build (vuejs#217) (vuejs#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
heny authored and YunYouJun committed Aug 30, 2021
1 parent 8a1ac4a commit a631407
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function joinPath(base: string, path: string): string {
*/
export function pathToFile(path: string): string {
let pagePath = path.replace(/\.html$/, '')
pagePath = decodeURIComponent(pagePath)
if (pagePath.endsWith('/')) {
pagePath += 'index'
}
Expand Down

0 comments on commit a631407

Please sign in to comment.