fix(Appearance Configuration): The display settings of the application do not change with the system theme

This commit is contained in:
dataeaseShu
2025-09-02 09:39:02 +08:00
parent 2c51c37bdb
commit f8d156bbed
3 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -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]
}
}
+4 -1
View File
@@ -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]
}
}
+4 -1
View File
@@ -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]
}
}