fix: 首次进入界面时不需要选中服务器
This commit is contained in:
@@ -79,9 +79,6 @@ export function useMqttStore() {
|
||||
try {
|
||||
const data = await window.api.getServers()
|
||||
servers.value = data
|
||||
if (data.length > 0 && !activeServerId.value) {
|
||||
activeServerId.value = data[0].id
|
||||
}
|
||||
setupListeners()
|
||||
} catch (e) {
|
||||
console.error('初始化失败:', e)
|
||||
|
||||
Reference in New Issue
Block a user