From bb844467c7e0fd3a5d4e6489c842389109db3519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=9A=E9=A3=8E=E6=8B=82=E6=9F=B3=E9=A2=9C?= <434857005@qq.com> Date: Tue, 9 May 2023 13:48:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/version.txt | 2 +- templates/cms/mxpro/detailContent.html | 4 ++-- templates/cms/mxpro/homeContent.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/version.txt b/js/version.txt index 3e7675e..8a04501 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.41beta16 \ No newline at end of file +3.9.41beta15 \ No newline at end of file diff --git a/templates/cms/mxpro/detailContent.html b/templates/cms/mxpro/detailContent.html index e000e2e..61f4de6 100644 --- a/templates/cms/mxpro/detailContent.html +++ b/templates/cms/mxpro/detailContent.html @@ -265,8 +265,8 @@ const app = createApp({ // hotsuggs.value = resp.data; // sessionStorage.setItem('hotsuggs',JSON.stringify(resp.data)); // }); - items.value = JSON.parse(sessionStorage.getItem('items')); - hotsuggs.value = JSON.parse(sessionStorage.getItem('hotsuggs')); + items.value = JSON.parse(sessionStorage.getItem('items'))||items.value; + hotsuggs.value = JSON.parse(sessionStorage.getItem('hotsuggs'))||hotsuggs.value; }); onBeforeUnmount(()=>{ diff --git a/templates/cms/mxpro/homeContent.html b/templates/cms/mxpro/homeContent.html index 026b800..ba8acc6 100644 --- a/templates/cms/mxpro/homeContent.html +++ b/templates/cms/mxpro/homeContent.html @@ -403,8 +403,8 @@ const app = createApp({ data:[] }); try { - items.value = JSON.parse(sessionStorage.getItem('items')); - hotsuggs.value = JSON.parse(sessionStorage.getItem('hotsuggs')); + items.value = JSON.parse(sessionStorage.getItem('items'))||items.value; + hotsuggs.value = JSON.parse(sessionStorage.getItem('hotsuggs'))||hotsuggs.value; }catch (e) {} return { items:items,