Procházet zdrojové kódy

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

xiaoxian521 před 2 roky
rodič
revize
6ebcb0a259
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  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;
       }
     },