瀏覽代碼

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

xiaoxian521 2 年之前
父節點
當前提交
6ebcb0a259
共有 1 個文件被更改,包括 1 次插入2 次删除
  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;
       }
     },