Browse Source

feat: increase support for multiple time zones

* 优化实现方法
pull/6839/head
zhongming4762 6 months ago
parent
commit
f46ae023ba
  1. 11
      playground/src/api/core/timezone.ts

11
playground/src/api/core/timezone.ts

@ -1,14 +1,15 @@
import type { TimezoneOption } from '@vben/types';
import { requestClient } from '#/api/request';
/**
*
*/
export async function getTimezoneOptionsApi() {
return await requestClient.get<TimezoneOption[]>(
'/timezone/getTimezoneOptions',
);
return await requestClient.get<
{
label: string;
value: string;
}[]
>('/timezone/getTimezoneOptions');
}
/**
*

Loading…
Cancel
Save