diff --git a/pages/post/_id.vue b/pages/post/_id.vue index 63bd74e..d426901 100644 --- a/pages/post/_id.vue +++ b/pages/post/_id.vue @@ -229,6 +229,15 @@ export default { } } + if (this.$route.query.hash) { + this.$nextTick(() => { + setTimeout(() => { + window.location.hash = '#' + this.$route.query.hash + console.log('#' + this.$route.query.hash) + }, 50) + }) + } + try { (adsbygoogle = window.adsbygoogle || []).push({}) // eslint-disable-line } catch (_) { }