修复查看原图role检查bug

This commit is contained in:
yezian 2024-12-26 21:03:58 +08:00
parent a0a4775cd2
commit 2aaf8861b2
1 changed files with 4 additions and 1 deletions

View File

@ -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: "是否开通会员",