From 6ebcb0a2595ee872ae1e67d3c4a5dc51fe83c01a Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 28 Mar 2023 17:31:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=8C=BA=E5=85=A8=E5=B1=8F=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/settings.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } },