We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3584c4 commit af11ef4Copy full SHA for af11ef4
1 file changed
src/frontEnd/src/api/system.ts
@@ -13,14 +13,14 @@ export interface RefreshIntervalConfig {
13
* 获取刷新间隔配置
14
*/
15
export async function getRefreshIntervalConfig(): Promise<RefreshIntervalConfig> {
16
- const response = await request.get('/config/refresh-interval')
17
- return response.data.data
+ // request 已在拦截器中返回 data.data,这里直接返回即可
+ return request.get('/config/refresh-interval')
18
}
19
20
/**
21
* 设置刷新间隔配置
22
23
export async function setRefreshIntervalConfig(interval: number): Promise<RefreshIntervalConfig> {
24
- const response = await request.post('/config/refresh-interval', { interval })
25
+ return request.post('/config/refresh-interval', { interval })
26
0 commit comments