mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-30 00:53:23 +08:00
feat: increase support for multiple time zones
This commit is contained in:
@@ -17,11 +17,11 @@ const useUserProfileStore = defineStore('user-profile', () => {
|
||||
* @param timezone 时区字符串
|
||||
*/
|
||||
async function setTimezone(timezone: string) {
|
||||
// 保存用户的时区设置
|
||||
await setUserTimezoneApi(timezone);
|
||||
timezoneRef.value = timezone;
|
||||
// 设置dayjs默认时区
|
||||
setDefaultTimezone(timezone);
|
||||
// 保存用户的时区设置
|
||||
await setUserTimezoneApi(timezone);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user