规范代码格式

This commit is contained in:
Sunwuyuan
2025-11-16 15:14:17 +08:00
parent 0af2c4cc63
commit 76c2dba502
87 changed files with 3402 additions and 3246 deletions
+4 -3
View File
@@ -556,8 +556,8 @@ class SettingsManagerClass {
definition.type === "boolean"
? Boolean(value)
: definition.type === "number"
? Number(value)
: String(value);
? Number(value)
: String(value);
}
// 验证
@@ -636,7 +636,8 @@ class SettingsManagerClass {
* @returns {Function} 取消监听的函数
*/
watchSettings(callback) {
if (typeof window === "undefined") return () => {};
if (typeof window === "undefined") return () => {
};
const handler = (event) => {
if (event.key === SETTINGS_STORAGE_KEY) {