2026年 03月 27日 星期五 18:13:55 CST
This commit is contained in:
parent
624621d60e
commit
4123846056
@ -122,7 +122,7 @@ function App() {
|
||||
const [showTimezone, setShowTimezone] = useState(() => {
|
||||
// 从 localStorage 读取,默认显示时区 (true)
|
||||
const saved = localStorage.getItem('clock-showTimezone')
|
||||
return saved === null ? true : saved === 'true'
|
||||
return saved === null ? false : saved === 'true'
|
||||
})
|
||||
|
||||
// 切换样式时保存到 localStorage
|
||||
|
||||
Loading…
Reference in New Issue
Block a user