@@ -34,6 +34,12 @@ export default {
}
},
mounted () {
+ window.addEventListener('hashchange', () => {
+ let currentPath = window.location.hash.slice(1)
+ if (this.$route.path !== currentPath) {
+ this.$router.push(currentPath)
+ }
+ }, false)
this.$nextTick(() => {
})