add
This commit is contained in:
parent
9a56e03de9
commit
67b26e5017
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue