更新用户总览图表,删除多余的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

@@ -5,9 +5,8 @@ import {callByUser} from './base'
import {listAnnouncements} from './announcement'
type statisticsResourceUsageReq = {
resource_no?: string
create_after?: Date
create_before?: Date
time_start?: Date
time_end?: Date
}
type statisticsResourceUsageResp = {
@@ -59,10 +58,7 @@ export async function listInitialization(): Promise<ApiResponse<listInitializati
message: '公告数据获取失败',
}
}
const usage = await statisticsResourceUsage({
create_after: new Date(),
create_before: new Date(),
})
const usage = await statisticsResourceUsage({})
if (!usage.success) {
return {
success: false,

View File

@@ -21,7 +21,6 @@ async function createWhitelist(props: {
host: string
remark?: string
}) {
console.log(props)
return await callByUser('/api/whitelist/create', props)
}
@@ -30,7 +29,6 @@ async function updateWhitelist(props: {
host?: string
remark?: string
}) {
console.log(props)
return await callByUser('/api/whitelist/update', props)
}