更新用户总览图表,删除多余的console.log

This commit is contained in:
Eamon-meng
2025-12-20 10:09:38 +08:00
parent e9881d2521
commit 2e4df24e05
12 changed files with 111 additions and 164 deletions

View File

@@ -337,10 +337,8 @@ function SelectResource() {
setStatus('load')
try {
const resp = await allResource()
console.log(resp, '套餐管理resprespresp')
if (!resp.success) {
console.log(11111)
throw new Error('获取套餐失败,请稍后再试')
}
setResources(resp.data ?? [])
@@ -543,16 +541,12 @@ function ApplyLink() {
const handler = form.handleSubmit(
// eslint-disable-next-line react-hooks/refs
async (values: z.infer<typeof schema>) => {
console.log(values, 'values')
const params = link(values)
console.log(params, 'paramsparams')
switch (type.current) {
case 'copy':
const url = new URL(window.location.href).origin
const text = `${url}${params}`
console.log(text, 'text')
// 使用 clipboard API 复制链接
let copied = false

View File

@@ -39,7 +39,6 @@ export function PaymentModal(props: PaymentModalProps) {
`${process.env.NEXT_PUBLIC_API_BASE_URL}/api/trade/check?trade_no=${props.inner_no}&method=${props.method}`,
)
eventSource.onmessage = async (event) => {
console.log(event, 'eventeventevent')
switch (event.data) {
case '1':
props.onConfirm?.(true)

View File

@@ -52,7 +52,6 @@ export default function Right() {
}
try {
const priceValue = await getPrice(params)
console.log(priceValue, 'priceValue')
if (priceValue.success && priceValue.data?.price) {
const data: PriceData = priceValue.data

View File

@@ -51,7 +51,6 @@ export default function Right() {
}
try {
const priceResponse = await getPrice(params)
console.log(priceResponse, 'priceResponse')
if (priceResponse.success && priceResponse.data) {
const data: PriceData = priceResponse.data

View File

@@ -6,6 +6,7 @@ import {DayPicker} from 'react-day-picker'
import {merge} from '@/lib/utils'
import {buttonVariants} from '@/components/ui/button'
import {zhCN} from 'date-fns/locale'
function Calendar({
className,
@@ -15,6 +16,7 @@ function Calendar({
}: React.ComponentProps<typeof DayPicker>) {
return (
<DayPicker
locale={zhCN}
showOutsideDays={showOutsideDays}
className={merge('p-3', className)}
classNames={{