Commit f46ae023 by zhongming4762

feat: increase support for multiple time zones

 * 优化实现方法
1 parent 212144fe
import type { TimezoneOption } from '@vben/types';
import { requestClient } from '#/api/request'; import { requestClient } from '#/api/request';
/** /**
* 获取系统支持的时区列表 * 获取系统支持的时区列表
*/ */
export async function getTimezoneOptionsApi() { export async function getTimezoneOptionsApi() {
return await requestClient.get<TimezoneOption[]>( return await requestClient.get<
'/timezone/getTimezoneOptions', {
); label: string;
value: string;
}[]
>('/timezone/getTimezoneOptions');
} }
/** /**
* 获取用户时区 * 获取用户时区
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!