feat: increase support for multiple time zones

* 优化实现方法
This commit is contained in:
zhongming4762
2025-10-29 20:03:21 +08:00
parent 4d713db546
commit 3eed51fd3e
6 changed files with 28 additions and 19 deletions

View File

@@ -30,8 +30,9 @@ const [Modal, modalApi] = useVbenModal({
onConfirm: async () => {
try {
modalApi.setState({ confirmLoading: true });
if (timezoneRef.value) {
await timezoneStore.setTimezone(unref(timezoneRef));
const timezone = unref(timezoneRef);
if (timezone) {
await timezoneStore.setTimezone(timezone);
}
modalApi.close();
} finally {