From e650090d3aea188835adf48ed76680aa9c7ba192 Mon Sep 17 00:00:00 2001 From: 18300102974 Date: Wed, 15 Mar 2023 14:13:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E6=89=BE=E6=89=93=E5=8C=85=E5=95=8F?= =?UTF-8?q?=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontEnd/components/home/CookieUnderModal.vue | 14 +++++++++----- FrontEnd/pages/exhibition/_id.vue | 10 +++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/FrontEnd/components/home/CookieUnderModal.vue b/FrontEnd/components/home/CookieUnderModal.vue index 3de018a..5d32829 100644 --- a/FrontEnd/components/home/CookieUnderModal.vue +++ b/FrontEnd/components/home/CookieUnderModal.vue @@ -145,15 +145,19 @@ export default { }; }, created(){ - let storeCache = this.$cookies.get("storeCache"); - if(storeCache!=undefined){ - this.isCookieHasBeenClicked = JSON.parse(storeCache); + if(process.client){ + let storeCache = this.$cookies.get("storeCache"); + if(storeCache!=undefined){ + this.isCookieHasBeenClicked = JSON.parse(storeCache); + } } }, methods:{ closeCookie(){ - this.isCookieHasBeenClicked = false; - this.$cookies.set("storeCache",JSON.stringify(false),1); + if(process.client){ + this.isCookieHasBeenClicked = false; + this.$cookies.set("storeCache",JSON.stringify(false),1); + } } } }; diff --git a/FrontEnd/pages/exhibition/_id.vue b/FrontEnd/pages/exhibition/_id.vue index 918236e..eeb3450 100644 --- a/FrontEnd/pages/exhibition/_id.vue +++ b/FrontEnd/pages/exhibition/_id.vue @@ -1,14 +1,14 @@