test(e2e): align preview URL encoding and docs

This commit is contained in:
kl
2026-03-04 17:24:27 +08:00
parent e845846d30
commit 3d0b14515f
2 changed files with 2 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ function b64(v: string): string {
}
async function openPreview(request: any, fileUrl: string) {
const encoded = b64(fileUrl);
const encoded = encodeURIComponent(b64(fileUrl));
return request.get(`/onlinePreview?url=${encoded}`);
}