From 914310590406e754fd606e47218f1a4449149fe4 Mon Sep 17 00:00:00 2001 From: lf <1534621107@qq.com> Date: Fri, 14 Jun 2024 10:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E6=B4=BB=E5=8A=A8=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/coupon/order.vue | 2 +- src/pages/index/index.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/coupon/order.vue b/src/pages/coupon/order.vue index 55992c2..b330725 100644 --- a/src/pages/coupon/order.vue +++ b/src/pages/coupon/order.vue @@ -10,7 +10,7 @@ - + { - query.value = getUrlPathName() const params = { activity_code: query.value || '', } @@ -145,10 +144,11 @@ const initContent = async () => { onLoad(() => { // activity_id 方式 - if (!useStore.userInfo.srcList.url) { + query.value = getUrlPathName() + if (!useStore.userInfo.srcList.url || useStore.userInfo.query !== query.value) { initContent() } else { - query.value = useStore.userInfo.query + // query.value = useStore.userInfo.query Object.assign(srcList, useStore.userInfo.srcList) Object.assign(contentData, useStore.userInfo.contentData) uni.setNavigationBarTitle({