diff --git a/src/store/modules/settings.ts b/src/store/modules/settings.ts index 60a45ea73..1c9d065e8 100644 --- a/src/store/modules/settings.ts +++ b/src/store/modules/settings.ts @@ -23,8 +23,7 @@ export const useSettingStore = defineStore({ }, actions: { CHANGE_SETTING({ key, value }) { - // eslint-disable-next-line no-prototype-builtins - if (this.hasOwnProperty(key)) { + if (Reflect.has(this, key)) { this[key] = value; } },