瀏覽代碼

fix: 删除profile async

Before 7 月之前
父節點
當前提交
9d61f71f12
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/app/[locale]/(TabBar)/profile/page.tsx

+ 1 - 3
src/app/[locale]/(TabBar)/profile/page.tsx

@@ -1,7 +1,6 @@
 import { UserInfoRep, UserVipInfo } from "@/api/user";
 import { getMoneyApi } from "@/api/userWallt";
 import { server } from "@/utils/server";
-import { FC } from "react";
 import ItemCom from "./component/ItemCom";
 import ModalCom from "./component/ModalCom";
 import "./page.scss";
@@ -32,8 +31,7 @@ const getVipApi = async () => {
             if (res.code === 200) return res.data;
         });
 };
-interface Props {}
-const Profile: FC<Props> = async () => {
+const Profile = async () => {
     const userInfo = await getUserInfo();
     const userMoney = await getMoneyApi();
     const userVip = await getVipApi();