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: { actions: {
CHANGE_SETTING({ key, value }) { CHANGE_SETTING({ key, value }) {
// eslint-disable-next-line no-prototype-builtins if (Reflect.has(this, key)) {
if (this.hasOwnProperty(key)) {
this[key] = value; this[key] = value;
} }
}, },