fix:系统设置主题导致程序运行失败

This commit is contained in:
不做码农 2023-02-06 21:46:30 +08:00
parent bf5dd6ac51
commit 1ba6b301e3

View File

@ -24,7 +24,8 @@ const useSettingsStore = defineStore('settings', {
// 修改布局设置
changeSetting(data) {
const { key, value } = data
if (this.hasOwnProperty(key)) {
// if (this.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(this.$state, key)) {
this[key] = value
}
},