From 28ba9d0c02dc0d0bd585b54bbde955463ee1370d Mon Sep 17 00:00:00 2001 From: WispX <1591788658@qq.com> Date: Sun, 15 Mar 2020 11:57:43 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=B9=E8=BF=9B=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E9=94=99=E8=AF=AF=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/app/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/static/app/js/app.js b/public/static/app/js/app.js index 5653fdb8..4ab3be53 100644 --- a/public/static/app/js/app.js +++ b/public/static/app/js/app.js @@ -165,13 +165,16 @@ var app = { url: '/admin/system/upgrade.html', type: 'POST', success: function (res) { - $d.close(); mdui.alert(res.msg, '系统提示', function() { res.code && history.go(0); }); }, complete: function () { + $d.close(); loading = false; + }, + error: function () { + mdui.alert('更新失败, 请稍后重试', '系统提示'); } }); }, 1000)