refactor:重构错误页,优化编辑器,上传新效果图

This commit is contained in:
lifei6671
2018-08-17 18:05:04 +08:00
parent fede48cf51
commit 913354ef17
10 changed files with 17 additions and 20 deletions

View File

@@ -202,10 +202,8 @@ $(function () {
timeout : 30000,
dataType: "json",
success: function (res) {
layer.close(index);
if (res.errcode === 0) {
resetEditorChanged(false);
window.saveing = false;
for (var i in window.documentCategory) {
var item = window.documentCategory[i];
@@ -230,8 +228,10 @@ $(function () {
}
},
error : function (XMLHttpRequest, textStatus, errorThrown) {
layer.close(index);
layer.msg("服务器错误:" + errorThrown);
},
complete :function () {
layer.close(index);
window.saveing = false;
}
});