Skip to content

Commit f46ae02

Browse files
committed
feat: increase support for multiple time zones
* 优化实现方法
1 parent 212144f commit f46ae02

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

playground/src/api/core/timezone.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
import type { TimezoneOption } from '@vben/types';
2-
31
import { requestClient } from '#/api/request';
42

53
/**
64
* 获取系统支持的时区列表
75
*/
86
export async function getTimezoneOptionsApi() {
9-
return await requestClient.get<TimezoneOption[]>(
10-
'/timezone/getTimezoneOptions',
11-
);
7+
return await requestClient.get<
8+
{
9+
label: string;
10+
value: string;
11+
}[]
12+
>('/timezone/getTimezoneOptions');
1213
}
1314
/**
1415
* 获取用户时区

0 commit comments

Comments
 (0)