From 851984b9a0189cf42707e430f344c6b0e06f7c3e Mon Sep 17 00:00:00 2001 From: zsw Date: Tue, 8 Oct 2019 19:06:07 +0800 Subject: [PATCH] fix: fixed first load encryption not working --- components/Page.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/Page.vue b/components/Page.vue index 91b8a62..4c47dcb 100644 --- a/components/Page.vue +++ b/components/Page.vue @@ -81,7 +81,8 @@ export default { data () { return { - recoShow: false + recoShow: false, + isHasKey: true } }, @@ -154,7 +155,8 @@ export default { return } - this.isHasKey = keys && keys.indexOf(sessionStorage.getItem('key')) > -1 + this.isHasKey = keys && keys.indexOf(sessionStorage.getItem('pageKey')) > -1 + this.$parent.isHasPageKey = this.isHasKey }, methods: {