File tree Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,18 @@ export default {
54
54
}
55
55
}
56
56
}),
57
- created () {
58
- if ( typeof window === ' undefined ' ) return
57
+ mounted () {
58
+ this . updateType ()
59
59
60
- this .type = window .location .hash .slice (1 )
61
- window .addEventListener (' hashchange' , function () {
60
+ window .addEventListener (' hashchange' , this .updateType )
61
+ },
62
+ beforeDestroy () {
63
+ window .removeEventListener (' hashchange' , this .updateType )
64
+ },
65
+ methods: {
66
+ updateType () {
62
67
this .type = window .location .hash .slice (1 )
63
- })
68
+ }
64
69
}
65
70
}
66
71
</script >
@@ -74,7 +79,12 @@ export default {
74
79
75
80
a {
76
81
margin : 20px ;
77
- color : $medium ;
82
+ color : $textColor ;
83
+ text-decoration : none !important ;
84
+
85
+ & :hover {
86
+ color : $accentColor ;
87
+ }
78
88
}
79
89
80
90
svg {
You can’t perform that action at this time.
0 commit comments