Skip to content

Commit

Permalink
fix: 工具站跳转为外部链接
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Jul 21, 2022
1 parent eccf3f1 commit e9ddbe6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -16,7 +16,7 @@
- [x] proxy 镜像通过环境变量传入参数
- [] 环境变量传入图片允许 URL
- [] 顶部菜单可配置化
- [] 工具站跳转为外部链接
- [x] 工具站跳转为外部链接
- [] 导入关于报错
- [] 主题切换闪烁
- [] 手机端点完侧边栏收起来
Expand Down
10 changes: 7 additions & 3 deletions packages/website/components/NavBar/index.tsx
Expand Up @@ -106,9 +106,13 @@ export default function (props: {
</Link>
</li>
<li className="nav-item transform hover:scale-110 hover:border-gray-400 dark:border-nav-dark dark:hover:border-nav-dark-light dark:transition-all">
<Link href={"https://tools.mereith.com"} target="_blank">
<a className="h-full flex items-center">工具站</a>
</Link>
<a
className="h-full flex items-center"
href={"https://tools.mereith.com"}
target="_blank"
>
工具站
</a>
</li>
<li className="nav-item transform hover:scale-110 hover:border-gray-400 dark:border-nav-dark dark:hover:border-nav-dark-light dark:transition-all">
<Link href={"/about"}>
Expand Down
10 changes: 7 additions & 3 deletions packages/website/components/layout/index.tsx
Expand Up @@ -79,9 +79,13 @@ export default function (props: {
</Link>
</li>
<li className="side-bar-item dark:border-dark-2 dark:hover:bg-dark-2">
<Link href={"https://tools.mereith.com"} target="_blank">
<a className="w-full inline-block">工具站</a>
</Link>
<a
className="w-full inline-block"
target="_blank"
href="https://tools.mereith.com"
>
工具站
</a>
</li>
<li className="side-bar-item dark:border-dark-2 dark:hover:bg-dark-2">
<Link href={"/about"}>
Expand Down

0 comments on commit e9ddbe6

Please sign in to comment.