This commit is contained in:
chenyang
2022-07-03 22:28:17 +08:00
parent 38b9fbfa86
commit e99e3c62a7
3 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -409,7 +409,7 @@
<!-- 右侧内容 start-->
<main role="main" class="col-md-10 ml-sm-auto col-lg-10 px-md-4" id="main">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<div style="margin-bottom: 0px;" class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h5 class="h5">全部文件</h5>
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#newMindModal">新建导图</button>
</div>
+1
View File
@@ -17,6 +17,7 @@
<script src="/static/js/jsmind.screenshot.js"></script>
<script src="/static/js/jsmind.menu.js"></script>
<script src="/static/js/jsmind.coop.js?d="></script>
<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script>
const fetch = function () {
this.jm = null
+11 -3
View File
@@ -237,9 +237,17 @@
}
// 保存快照,保存完毕后设置 coop_mind_log_last_id 和 coop_mind_log_id
if (me.coop_mind_log_id > me.coop_mind_log_last_id) {
Jm.util.ajax.post(me.coop_api_url, param, function (resp) {
me.coop_mind_log_last_id = me.coop_mind_log_id
})
$.ajax({
type: "post",
url: me.coop_api_url,
headers: {"X-CSRFToken": $.cookie("csrftoken")},
data: param,
dataType: "json",
success: function (data) {
me.coop_mind_log_last_id = me.coop_mind_log_id
},
async: false
});
}
}, 10000)
}