feat: increase support for multiple time zones
* 优化实现方法
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user