mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
refactor:优化代码
This commit is contained in:
parent
913354ef17
commit
1086ed30ec
@ -212,6 +212,13 @@ $(function () {
|
||||
break;
|
||||
}
|
||||
}
|
||||
$.each(window.documentCategory,function (i, item) {
|
||||
var $item = window.documentCategory[i];
|
||||
|
||||
if (item.id === doc_id) {
|
||||
window.documentCategory[i].version = res.data.version;
|
||||
}
|
||||
});
|
||||
if (typeof callback === "function") {
|
||||
callback();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user