mirror of
https://github.com/kekingcn/kkFileView.git
synced 2026-04-30 15:01:44 +00: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