⚡️ improve: web improve
This commit is contained in:
parent
c7387dd5b1
commit
6b018b405a
@ -32,13 +32,13 @@ export default function Overview() {
|
||||
data.total_used_quota = renderQuota(data.total_used_quota);
|
||||
data.total_direct_user = data.total_user - data.total_inviter_user;
|
||||
setUserStatistics(data);
|
||||
setUserLoading(false);
|
||||
} else {
|
||||
showError(message);
|
||||
}
|
||||
} catch (error) {
|
||||
return;
|
||||
console.log(error);
|
||||
}
|
||||
setUserLoading(false);
|
||||
}, []);
|
||||
|
||||
const channelStatisticsData = useCallback(async () => {
|
||||
@ -59,13 +59,13 @@ export default function Overview() {
|
||||
channelData.total += item.total_channels;
|
||||
});
|
||||
setChannelStatistics(channelData);
|
||||
setChannelLoading(false);
|
||||
} else {
|
||||
showError(message);
|
||||
}
|
||||
} catch (error) {
|
||||
return;
|
||||
console.log(error);
|
||||
}
|
||||
setChannelLoading(false);
|
||||
}, [channelStatistics]);
|
||||
|
||||
const redemptionStatisticsData = useCallback(async () => {
|
||||
@ -85,13 +85,13 @@ export default function Overview() {
|
||||
});
|
||||
redemptionData.total = renderQuota(redemptionData.total);
|
||||
setRedemptionStatistics(redemptionData);
|
||||
setRedemptionLoading(false);
|
||||
} else {
|
||||
showError(message);
|
||||
}
|
||||
} catch (error) {
|
||||
return;
|
||||
console.log(error);
|
||||
}
|
||||
setRedemptionLoading(false);
|
||||
}, [redemptionStatistics]);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -67,7 +67,7 @@ const Dashboard = () => {
|
||||
<Grid item lg={4} xs={12}>
|
||||
<StatisticalLineChartCard
|
||||
isLoading={isLoading}
|
||||
title="今日请求量"
|
||||
title="今日请求"
|
||||
chartData={requestChart?.chartData}
|
||||
todayValue={requestChart?.todayValue}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user