From c3087a94a24756e0bb4ab35ee08ca98a262126a6 Mon Sep 17 00:00:00 2001 From: reco_luan Date: Sat, 20 Jul 2019 18:50:45 +0800 Subject: [PATCH] fix: display rules of password page --- components/Common.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/Common.vue b/components/Common.vue index 71d1e33..40b0a09 100644 --- a/components/Common.vue +++ b/components/Common.vue @@ -166,6 +166,15 @@ export default { } } } + }, + + watch: { + $frontmatter (newVal, oldVal) { + if (newVal.home) { + this.hasKey() + this.hasPageKey() + } + } } }