From f494d268eb10619a32ae7c7828b0ceb866aa7a97 Mon Sep 17 00:00:00 2001 From: heny <1623246663@qq.com> Date: Mon, 15 Mar 2021 21:43:51 +0800 Subject: [PATCH] fix: chinese filename build --- 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 26383bf5..7968158d 100644 --- a/src/client/app/utils.ts +++ b/src/client/app/utils.ts @@ -12,6 +12,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' }