From b940397cd0e5135e7433bac6fc99da8553915053 Mon Sep 17 00:00:00 2001 From: heny <1623246663@qq.com> Date: Thu, 27 May 2021 16:19:26 +0800 Subject: [PATCH] fix: chinese filenames can't build (#217) (#262) --- src/client/app/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/app/utils.ts b/src/client/app/utils.ts index dea88b64..ced9cbb4 100644 --- a/src/client/app/utils.ts +++ b/src/client/app/utils.ts @@ -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' }