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

This commit is contained in:
xiaoxian521 2023-03-28 17:31:23 +08:00
parent 1c7af560fc
commit 6ebcb0a259

View File

@ -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;
}
},