添加test页面
This commit is contained in:
parent
7103f22de2
commit
a48641fe7c
|
@ -0,0 +1,13 @@
|
||||||
|
"use client";
|
||||||
|
|
||||||
|
import React, { useEffect } from "react";
|
||||||
|
import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
|
export default function WxpayH5({ params }) {
|
||||||
|
const router = useRouter();
|
||||||
|
useEffect(() => {
|
||||||
|
const redirect_uri = decodeURIComponent(params.url);
|
||||||
|
router.replace(redirect_uri);
|
||||||
|
}, []);
|
||||||
|
return <section className="bg-white"></section>;
|
||||||
|
}
|
|
@ -23,6 +23,9 @@ export default function WithAuth(WrappedComponent) {
|
||||||
const checkLogin = async () => {
|
const checkLogin = async () => {
|
||||||
const hasToken = await get("token");
|
const hasToken = await get("token");
|
||||||
// console.log("hasToken", hasToken);
|
// console.log("hasToken", hasToken);
|
||||||
|
if(pathname.includes("test")){
|
||||||
|
return
|
||||||
|
}
|
||||||
if (hasToken) {
|
if (hasToken) {
|
||||||
const currentIsLogin = await checkAuth();
|
const currentIsLogin = await checkAuth();
|
||||||
if (!currentIsLogin) {
|
if (!currentIsLogin) {
|
||||||
|
|
Loading…
Reference in New Issue