第一次提交
This commit is contained in:
25
fastbee-record/src/main/resources/static/download.html
Normal file
25
fastbee-record/src/main/resources/static/download.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>下载</title>
|
||||
</head>
|
||||
<body>
|
||||
<a id="download" download></a>
|
||||
<script>
|
||||
(function () {
|
||||
let searchParams = new URLSearchParams(location.search);
|
||||
var download = document.getElementById("download");
|
||||
download.setAttribute("href", searchParams.get("url"))
|
||||
download.click()
|
||||
setTimeout(() => {
|
||||
window.location.href = "about:blank";
|
||||
window.close();
|
||||
}, 200)
|
||||
})();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user