From 41db73cd1117cedd470046a2b5dbe93bd660d117 Mon Sep 17 00:00:00 2001 From: yxw <17074267@qq.com> Date: Fri, 24 Nov 2023 17:45:08 +0800 Subject: [PATCH] fix --- system.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/system.html b/system.html index b078101..44bd0a0 100644 --- a/system.html +++ b/system.html @@ -219,8 +219,14 @@ type: "GET", url: url, success: function (res) { - alert('upgrade success!device reboot!') - window.location.reload(true) + if (res.success) { + alert('upgrade success!device reboot!') + window.location.reload(true) + } + else { + alert('upgrade failed!upgrade pack invalid!') + window.location.reload(true) + } }, error: function () { alert('upgrade failed!upgrade pack invalid!')