Browse Source

fix: 修复点击内容区全屏报错问题

xiaoxian521 2 years ago
parent
commit
6ebcb0a259
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/store/modules/settings.ts

+ 1 - 2
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;
       }
     },