From f46ae023ba85f9c32d911bdba461d0492e10df0a Mon Sep 17 00:00:00 2001 From: zhongming4762 Date: Wed, 29 Oct 2025 20:14:48 +0800 Subject: [PATCH] feat: increase support for multiple time zones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 优化实现方法 --- playground/src/api/core/timezone.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/playground/src/api/core/timezone.ts b/playground/src/api/core/timezone.ts index 559ed4b2..13d44d19 100644 --- a/playground/src/api/core/timezone.ts +++ b/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( - '/timezone/getTimezoneOptions', - ); + return await requestClient.get< + { + label: string; + value: string; + }[] + >('/timezone/getTimezoneOptions'); } /** * 获取用户时区