From 5d26156843ecaab390705c2ffb48e8bcdbbdda29 Mon Sep 17 00:00:00 2001 From: LynnL4 Date: Thu, 21 Dec 2023 13:54:43 +0800 Subject: [PATCH] fix: fixed the issue of incorrect parameters when configuring MQTT --- src/pages/setup/config/components/Config.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/setup/config/components/Config.vue b/src/pages/setup/config/components/Config.vue index 41982bf..5e392b7 100644 --- a/src/pages/setup/config/components/Config.vue +++ b/src/pages/setup/config/components/Config.vue @@ -132,10 +132,10 @@ mqtt: { enabled: false, host: '', - port: 0, + port: 1883, username: '', password: '', - ssl: 0, + ssl: false, }, }); @@ -152,7 +152,7 @@ port: 1883, username: '', password: '', - ssl: 0, + ssl: false, }, }); @@ -175,7 +175,7 @@ config.mqtt.port, config.mqtt.username, config.mqtt.password, - config.mqtt.ssl + config.mqtt.ssl ? 1 : 0 ); } oldConfig = JSON.parse(JSON.stringify(config));