Skip to content

Commit a6814ea

Browse files
committed
fix: website link
1 parent dd40cd3 commit a6814ea

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.vitepress/theme/components/HeaderButton.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@
1111
type: String,
1212
default: '官网'
1313
},
14-
url: {
15-
type: String,
16-
default: 'https://swanlab.cn'
17-
}
1814
})
1915
2016
function goToWebsite() {
21-
window.open(url, '_blank')
17+
window.open('https://swanlab.cn', '_blank')
2218
}
2319
</script>
2420

.vitepress/theme/components/HeaderButtonEN.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@
1111
type: String,
1212
default: 'Website'
1313
},
14-
url: {
15-
type: String,
16-
default: 'https://swanlab.cn'
17-
}
14+
1815
})
1916
2017
function goToWebsite() {
21-
window.open(url, '_blank')
18+
window.open('https://swanlab.cn', '_blank')
2219
}
2320
</script>
2421

0 commit comments

Comments
 (0)