mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-21 03:44:17 +08:00
refactor:优化代码
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user