From 2aaf8861b2a35190a87bb0746669b581ea5b6cd5 Mon Sep 17 00:00:00 2001 From: yezian Date: Thu, 26 Dec 2024 21:03:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E7=9C=8B=E5=8E=9F?= =?UTF-8?q?=E5=9B=BErole=E6=A3=80=E6=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CheckVip/index.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/CheckVip/index.jsx b/components/CheckVip/index.jsx index 8c207f5..af5fc22 100644 --- a/components/CheckVip/index.jsx +++ b/components/CheckVip/index.jsx @@ -5,12 +5,15 @@ import { Dialog, Toast } from "antd-mobile"; import { checkRole } from "@/utils/auth"; // import { useRouter } from "next/navigation"; import baseRequest from "@/utils/baseRequest"; +import { get } from "@/utils/storeInfo"; + export default function CheckVip({ children, isVipToPassFun, router }) { // const router = useRouter(); const base = baseRequest(); useEffect(() => {}, []); const handleCheck = () => { - const isVip = checkRole(); + const account = get("account"); + const isVip = account?.is_a_member; if (!isVip) { const showMobal = Dialog.show({ title: "是否开通会员",