🎨 改进更新出现错误的提示

This commit is contained in:
WispX
2020-03-15 11:57:43 +08:00
parent 132a656e90
commit 28ba9d0c02
+4 -1
View File
@@ -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)