This commit is contained in:
ditiqi 2025-02-18 08:34:50 +08:00
parent 9a56e03de9
commit 67b26e5017
1 changed files with 1 additions and 10 deletions

View File

@ -73,17 +73,8 @@ export const Header = memo(function Header() {
style={{
boxShadow: "none",
}}
onClick={() => {
const link =
document.createElement("a"); // 创建一个链接元素
link.href = "/chrome.exe"; // 替换为您在 public 目录中的安装包路径
link.download = "chrome.exe"; // 设置下载文件名
document.body.appendChild(link); // 将链接添加到文档中
link.click(); // 模拟点击下载
document.body.removeChild(link); // 下载后移除链接
}}
type="primary">
</Button>
)}
</div>