mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-16 22:23:46 +08:00
test(e2e): align preview URL encoding and docs
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user