From a6814ea2106ffb3f0caa4965890d885ea57ae713 Mon Sep 17 00:00:00 2001 From: ZeYi Lin <944270057@qq.com> Date: Thu, 9 Jan 2025 23:43:02 +0800 Subject: [PATCH] fix: website link --- .vitepress/theme/components/HeaderButton.vue | 6 +----- .vitepress/theme/components/HeaderButtonEN.vue | 7 ++----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.vitepress/theme/components/HeaderButton.vue b/.vitepress/theme/components/HeaderButton.vue index 32814c3..29cdac5 100644 --- a/.vitepress/theme/components/HeaderButton.vue +++ b/.vitepress/theme/components/HeaderButton.vue @@ -11,14 +11,10 @@ type: String, default: '官网' }, - url: { - type: String, - default: 'https://swanlab.cn' - } }) function goToWebsite() { - window.open(url, '_blank') + window.open('https://swanlab.cn', '_blank') } diff --git a/.vitepress/theme/components/HeaderButtonEN.vue b/.vitepress/theme/components/HeaderButtonEN.vue index e9c73b8..782ba3c 100644 --- a/.vitepress/theme/components/HeaderButtonEN.vue +++ b/.vitepress/theme/components/HeaderButtonEN.vue @@ -11,14 +11,11 @@ type: String, default: 'Website' }, - url: { - type: String, - default: 'https://swanlab.cn' - } + }) function goToWebsite() { - window.open(url, '_blank') + window.open('https://swanlab.cn', '_blank') }