mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
refactor:重构错误页,优化编辑器,上传新效果图
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user