From 41875a39e8faf9344ae13f33c585a75ea57d3548 Mon Sep 17 00:00:00 2001 From: yige Date: Sat, 18 Jul 2020 22:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=86=85=E5=AE=B9=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/post/_id.vue | 9 +++++++++ 1 file changed, 9 insertions(+) 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 (_) { }