下载按钮禁止重复点击
This commit is contained in:
parent
79d3f38552
commit
5a8fcf8b57
@ -84,6 +84,7 @@
|
||||
downloading = false;
|
||||
} else if (this.status == 404) {
|
||||
console.log("视频不存在");
|
||||
downloading = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -97,6 +98,7 @@
|
||||
}
|
||||
xhr.onerror = () => {
|
||||
console.error('网络或服务器错误');
|
||||
downloading = false;
|
||||
}
|
||||
|
||||
xhr.send();
|
||||
|
Loading…
x
Reference in New Issue
Block a user