Skip to content

Commit 81fe422

Browse files
committed
docs: remove notification when page changed
1 parent 3603009 commit 81fe422

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/docs/docs/.vuepress/mixin.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const notification = {
2727

2828
const gotIt = {
2929
'/': 'Got it',
30-
'/zh/': '知道了',
30+
'/zh/': '知道了'
3131
}
3232

3333
export default {
@@ -49,6 +49,9 @@ export default {
4949
}
5050
},
5151
watch: {
52+
'$page' () {
53+
this.$notification.goAway(0)
54+
},
5255
'$localePath' () {
5356
this.$notification.goAway(0)
5457
this.notice()

0 commit comments

Comments
 (0)