Skip to content

Commit

Permalink
fix: website link
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyi-Lin committed Jan 9, 2025
1 parent dd40cd3 commit a6814ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 1 addition & 5 deletions .vitepress/theme/components/HeaderButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
</script>

Expand Down
7 changes: 2 additions & 5 deletions .vitepress/theme/components/HeaderButtonEN.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
</script>

Expand Down

0 comments on commit a6814ea

Please sign in to comment.