From 67b26e5017b20c6728e86c8d96c549f4ca2683ea Mon Sep 17 00:00:00 2001 From: ditiqi Date: Tue, 18 Feb 2025 08:34:50 +0800 Subject: [PATCH] add --- apps/web/src/components/layout/main/Header.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/apps/web/src/components/layout/main/Header.tsx b/apps/web/src/components/layout/main/Header.tsx index a19292e..b3eff7a 100644 --- a/apps/web/src/components/layout/main/Header.tsx +++ b/apps/web/src/components/layout/main/Header.tsx @@ -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"> - 预览模式,点击此处下载推荐浏览器 + 预览模式 )}