From 68cf8e00a54475840d1ea94dc74a28ff103efb52 Mon Sep 17 00:00:00 2001 From: al Date: Mon, 12 Aug 2024 18:13:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/wxpay_h5/[url]/page.js | 2 +- components/WithAuth/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/wxpay_h5/[url]/page.js b/app/wxpay_h5/[url]/page.js index ffd7bca..ba284e2 100644 --- a/app/wxpay_h5/[url]/page.js +++ b/app/wxpay_h5/[url]/page.js @@ -9,5 +9,5 @@ export default function WxpayH5({ params }) { const redirect_uri = decodeURIComponent(params.url); router.replace(redirect_uri); }, []); - return
; + return
; } \ No newline at end of file diff --git a/components/WithAuth/index.js b/components/WithAuth/index.js index 7e1f19f..6eda5ab 100644 --- a/components/WithAuth/index.js +++ b/components/WithAuth/index.js @@ -23,7 +23,7 @@ export default function WithAuth(WrappedComponent) { const checkLogin = async () => { const hasToken = await get("token"); // console.log("hasToken", hasToken); - if(pathname.includes("test")){ + if(pathname.includes("wxpay_h5")){ return } if (hasToken) {