fix:dashboard stats
This commit is contained in:
parent
413f28599f
commit
0d390b460b
|
|
@ -261,6 +261,7 @@ export default function DashboardContainer() {
|
|||
const res = await getUserLevelDataStat(
|
||||
getDate(postContentDate.startDate),
|
||||
getDate(postContentDate.endDate),
|
||||
getUnixTimestamp(),
|
||||
id
|
||||
);
|
||||
const polresNowData = getTableNumberStats(res?.data?.data);
|
||||
|
|
|
|||
|
|
@ -190,6 +190,7 @@ export async function deleteArticleFiles(id: number) {
|
|||
export async function getUserLevelDataStat(
|
||||
startDate: string,
|
||||
endDate: string,
|
||||
timeStamp: number,
|
||||
levelId?: number
|
||||
) {
|
||||
// const headers = {
|
||||
|
|
@ -197,7 +198,7 @@ export async function getUserLevelDataStat(
|
|||
// Authorization: `Bearer ${token}`,
|
||||
// };
|
||||
return await httpGetInterceptor(
|
||||
`/articles/statistic/user-levels?startDate=${startDate}&endDate=${endDate}&userLevelId=${
|
||||
`/articles/statistic/user-levels?startDate=${startDate}&endDate=${endDate}&timeStamp=${timeStamp}&userLevelId=${
|
||||
levelId || ""
|
||||
}`
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue