fix:系统设置主题导致程序运行失败
This commit is contained in:
parent
bf5dd6ac51
commit
1ba6b301e3
@ -24,7 +24,8 @@ const useSettingsStore = defineStore('settings', {
|
|||||||
// 修改布局设置
|
// 修改布局设置
|
||||||
changeSetting(data) {
|
changeSetting(data) {
|
||||||
const { key, value } = data
|
const { key, value } = data
|
||||||
if (this.hasOwnProperty(key)) {
|
// if (this.hasOwnProperty(key)) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(this.$state, key)) {
|
||||||
this[key] = value
|
this[key] = value
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user