diff --git a/system.html b/system.html
index cc421bd..f693e2b 100644
--- a/system.html
+++ b/system.html
@@ -210,21 +210,28 @@
$.ajax({
type: 'POST',
url: url,
- data: formData,
+ data: postData,
dataType: 'json',
- type: 'POST',
- async: false,
- processData: false, // 使数据不做处理
- contentType: false, // 不要设置Content-Type请求头
success: function (res) {
console.log(res)
if (res.success) {
- data = res.content
-
- window.location.reload(true);
+ setTimeout(() => {
+ let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=upgrade_get';
+ $.ajax({
+ type: "GET",
+ url: url,
+ success: function (res) {
+ alert('upgrade success!device reboot!')
+ window.location.reload(true)
+ },
+ error: function () {
+ alert('upgrade failed!upgrade pack invalid!')
+ window.location.reload(true)
+ }
+ })
+ }, 1500);
}
else {
- console.log(res.message)
alert(res.message)
}
},