File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,11 @@ export default {
47
47
this .versions = (await ProjectRepository .getVersions (
48
48
this .$route .params .project
49
49
)).map ((version ) => version .name )
50
- this .docURL = this .$route .params .location || ProjectRepository .getProjectDocsURL (
51
- this .$route .params .project ,
52
- this .$route .params .version
53
- )
50
+ // listen on anchor tag changes
51
+ const component = this
52
+ document .getElementById (" docs" )
53
+ .contentWindow .addEventListener (" hashchange" , (event ) =>
54
+ component .load (event .newURL ))
54
55
},
55
56
methods: {
56
57
onChange () {
@@ -68,11 +69,6 @@ export default {
68
69
location
69
70
}
70
71
})
71
- // load the correct documentation
72
- this .docURL = ProjectRepository .getProjectDocsURL (
73
- this .$route .params .project ,
74
- this .$route .params .version
75
- )
76
72
}
77
73
}
78
74
}
You can’t perform that action at this time.
0 commit comments