From f8d156bbedfad9edbbeba198a9aa76d47d2cad7c Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 2 Sep 2025 09:39:02 +0800 Subject: [PATCH] fix(Appearance Configuration): The display settings of the application do not change with the system theme --- frontend/src/views/embedded/index.vue | 5 ++++- frontend/src/views/embedded/page.vue | 5 ++++- frontend/src/views/system/embedded/SetUi.vue | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/embedded/index.vue b/frontend/src/views/embedded/index.vue index 11308d6e..a6fc0db8 100644 --- a/frontend/src/views/embedded/index.vue +++ b/frontend/src/views/embedded/index.vue @@ -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] } } diff --git a/frontend/src/views/embedded/page.vue b/frontend/src/views/embedded/page.vue index bf44133b..adcbeb10 100644 --- a/frontend/src/views/embedded/page.vue +++ b/frontend/src/views/embedded/page.vue @@ -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] } } diff --git a/frontend/src/views/system/embedded/SetUi.vue b/frontend/src/views/system/embedded/SetUi.vue index 0be2975a..ec362471 100644 --- a/frontend/src/views/system/embedded/SetUi.vue +++ b/frontend/src/views/system/embedded/SetUi.vue @@ -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] } }