Skip to content

Commit 62a92fc

Browse files
committed
docs: fix notification would not exist
1 parent 81fe422 commit 62a92fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/docs/docs/.vuepress/mixin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ export default {
5050
},
5151
watch: {
5252
'$page' () {
53-
this.$notification.goAway(0)
53+
this.$notification && this.$notification.goAway(0)
5454
},
5555
'$localePath' () {
56-
this.$notification.goAway(0)
56+
this.$notification && this.$notification.goAway(0)
5757
this.notice()
5858
}
5959
},

0 commit comments

Comments
 (0)