mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-24 01:34:31 +08:00
feat: increase support for multiple time zones
* 优化实现方法
This commit is contained in:
@@ -3,5 +3,9 @@ import { TIME_ZONE_OPTIONS } from '~/utils/mock-data';
|
||||
import { useResponseSuccess } from '~/utils/response';
|
||||
|
||||
export default eventHandler(() => {
|
||||
return useResponseSuccess(TIME_ZONE_OPTIONS);
|
||||
const data = TIME_ZONE_OPTIONS.map((o) => ({
|
||||
label: `${o.timezone} (GMT${o.offset >= 0 ? `+${o.offset}` : o.offset})`,
|
||||
value: o.timezone,
|
||||
}));
|
||||
return useResponseSuccess(data);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user