forked from 77media/video-flow
新增 兼容encode过的下载url
This commit is contained in:
parent
5b70c642a7
commit
a40cacb528
@ -80,7 +80,7 @@ export function createScreenAdapter(): void {
|
|||||||
|
|
||||||
export const downloadVideo = async (url: string) => {
|
export const downloadVideo = async (url: string) => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(url);
|
const response = await fetch(decodeURIComponent(url));
|
||||||
const blob = await response.blob();
|
const blob = await response.blob();
|
||||||
const blobUrl = window.URL.createObjectURL(blob);
|
const blobUrl = window.URL.createObjectURL(blob);
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user