diff --git a/web/src/pages/app/database/service.ts b/web/src/pages/app/database/service.ts index ea64ed794e..4d7aed3606 100644 --- a/web/src/pages/app/database/service.ts +++ b/web/src/pages/app/database/service.ts @@ -46,7 +46,6 @@ export const useEntryDataQuery = (params: any, onSuccess: (data: any) => void) = async () => { if (!currentDB) return; const { pageSize = 10, page = 1, _id } = params; - debugger; const query = _id ? { _id } : {}; diff --git a/web/src/pages/app/setting/AppEnvList/index.tsx b/web/src/pages/app/setting/AppEnvList/index.tsx index da0c45e1c9..4c8ca2d401 100644 --- a/web/src/pages/app/setting/AppEnvList/index.tsx +++ b/web/src/pages/app/setting/AppEnvList/index.tsx @@ -27,21 +27,15 @@ const AppEnvList = (props: { onClose?: () => {} }) => { const envValue = useRef(convertToEnv(environmentQuery?.data?.data)); return ( <> -
+
{ envValue.current = value; diff --git a/web/src/pages/app/setting/AppInfoList/index.tsx b/web/src/pages/app/setting/AppInfoList/index.tsx index c47df3e9b2..db84c89b84 100644 --- a/web/src/pages/app/setting/AppInfoList/index.tsx +++ b/web/src/pages/app/setting/AppInfoList/index.tsx @@ -29,7 +29,7 @@ const AppEnvList = () => { return ( <>
-
+
Usage {t("Balance")}: - {(accountRes?.data?.balance ?? 0) / 100} + {formatPrice(accountRes?.data?.balance)} {t("ChargeNow")} diff --git a/web/src/pages/app/setting/UserInfo/index.tsx b/web/src/pages/app/setting/UserInfo/index.tsx index 5d7cb42826..5a9d412815 100644 --- a/web/src/pages/app/setting/UserInfo/index.tsx +++ b/web/src/pages/app/setting/UserInfo/index.tsx @@ -3,7 +3,7 @@ import { Avatar, Box, HStack } from "@chakra-ui/react"; import { t } from "i18next"; import ChargeButton from "@/components/ChargeButton"; -import { formatDate, hidePhoneNumber } from "@/utils/format"; +import { formatDate, formatPrice, hidePhoneNumber } from "@/utils/format"; import AuthDetail from "./AuthDetail"; @@ -54,7 +54,7 @@ export default function UserInfo() { {t("Balance")}: - {accountRes?.data?.balance} + {formatPrice(accountRes?.data?.balance)} {t("ChargeNow")} diff --git a/web/src/pages/app/setting/index.tsx b/web/src/pages/app/setting/index.tsx index 4824af1cee..2866eb3a81 100644 --- a/web/src/pages/app/setting/index.tsx +++ b/web/src/pages/app/setting/index.tsx @@ -58,9 +58,9 @@ const SettingModal = (props: { {headerTitle || t("SettingPanel.Setting")} - + - + {tabMatch.map((tab) => { return ( -
+
{React.cloneElement(item?.component || <>, { onClose, })} diff --git a/web/src/utils/format.ts b/web/src/utils/format.ts index a212bb8cc2..68417bca3b 100644 --- a/web/src/utils/format.ts +++ b/web/src/utils/format.ts @@ -82,7 +82,7 @@ export function formatPort(port: number | undefined) { } export function formatPrice(price?: number) { - return price ? "¥" + (price / 100).toFixed(2) : "-"; + return price ? (price / 100).toFixed(2) : "-"; } export function convertMoney(money: number) {