Skip to content

Commit

Permalink
fix: fixed the issue of incorrect parameters when configuring MQTT
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnL4 committed Dec 21, 2023
1 parent f7bbd4c commit 5d26156
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/setup/config/components/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@
mqtt: {
enabled: false,
host: '',
port: 0,
port: 1883,
username: '',
password: '',
ssl: 0,
ssl: false,
},
});
Expand All @@ -152,7 +152,7 @@
port: 1883,
username: '',
password: '',
ssl: 0,
ssl: false,
},
});
Expand All @@ -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));
Expand Down

0 comments on commit 5d26156

Please sign in to comment.