fix: 修复前端控制台 eslint 告警

This commit is contained in:
2023-11-14 22:03:04 +08:00
parent abd4fb5368
commit f4523d2481
23 changed files with 41 additions and 43 deletions

View File

@@ -44,19 +44,19 @@ export function getTotal() {
export function listAccessTrend(days: number) {
return axios.get<DashboardAccessTrendRecord[]>(
`${BASE_URL}/access/trend/${days}`
`${BASE_URL}/access/trend/${days}`,
);
}
export function listPopularModule() {
return axios.get<DashboardPopularModuleRecord[]>(
`${BASE_URL}/popular/module`
`${BASE_URL}/popular/module`,
);
}
export function getGeoDistribution() {
return axios.get<DashboardGeoDistributionRecord>(
`${BASE_URL}/geo/distribution`
`${BASE_URL}/geo/distribution`,
);
}

View File

@@ -48,7 +48,7 @@ export interface FieldConfigRecord {
export function listFieldConfig(tableName: string, requireSync: boolean) {
return axios.get<FieldConfigRecord[]>(
`${BASE_URL}/field/${tableName}?requireSync=${requireSync}`
`${BASE_URL}/field/${tableName}?requireSync=${requireSync}`,
);
}