Commit 9730c198 by xhw

更新

parent d2b6c85b
......@@ -188,18 +188,15 @@
if (!response.ok)
throw new Error('Network response was not ok');
return response.json();
}
).then(data => {
}).then(data => {
console.log('Success:', data);
// 在这里添加成功处理逻辑
alert('WiFi配置成功!');
}
).catch(error => {
console.error('Error:', error);
// 在这里添加错误处理逻辑
alert('配置失败,请重试');
}
);
}).catch(error => {
console.error('Error:', error);
// 在这里添加错误处理逻辑
// alert('配置失败,请重试');
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment