mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix(Appearance Configuration): The display settings of the application do not change with the system theme
This commit is contained in:
@@ -171,7 +171,10 @@ onBeforeMount(async () => {
|
||||
}
|
||||
|
||||
for (const key in customSet) {
|
||||
if (Object.prototype.hasOwnProperty.call(customSet, key)) {
|
||||
if (
|
||||
Object.prototype.hasOwnProperty.call(customSet, key) &&
|
||||
![null, undefined].includes(rawData[key])
|
||||
) {
|
||||
customSet[key] = rawData[key]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,7 +150,10 @@ onBeforeMount(async () => {
|
||||
}
|
||||
|
||||
for (const key in customSet) {
|
||||
if (Object.prototype.hasOwnProperty.call(customSet, key)) {
|
||||
if (
|
||||
Object.prototype.hasOwnProperty.call(customSet, key) &&
|
||||
![null, undefined].includes(rawData[key])
|
||||
) {
|
||||
customSet[key] = rawData[key]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,10 @@ const init = () => {
|
||||
floatIcon.value = rawData.float_icon
|
||||
|
||||
for (const key in sqlBotForm) {
|
||||
if (Object.prototype.hasOwnProperty.call(sqlBotForm, key)) {
|
||||
if (
|
||||
Object.prototype.hasOwnProperty.call(sqlBotForm, key) &&
|
||||
![null, undefined].includes(rawData[key])
|
||||
) {
|
||||
sqlBotForm[key] = rawData[key]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user