update
This commit is contained in:
@@ -409,7 +409,7 @@
|
|||||||
|
|
||||||
<!-- 右侧内容 start-->
|
<!-- 右侧内容 start-->
|
||||||
<main role="main" class="col-md-10 ml-sm-auto col-lg-10 px-md-4" id="main">
|
<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>
|
<h5 class="h5">全部文件</h5>
|
||||||
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#newMindModal">新建导图</button>
|
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#newMindModal">新建导图</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
<script src="/static/js/jsmind.screenshot.js"></script>
|
<script src="/static/js/jsmind.screenshot.js"></script>
|
||||||
<script src="/static/js/jsmind.menu.js"></script>
|
<script src="/static/js/jsmind.menu.js"></script>
|
||||||
<script src="/static/js/jsmind.coop.js?d="></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>
|
<script>
|
||||||
const fetch = function () {
|
const fetch = function () {
|
||||||
this.jm = null
|
this.jm = null
|
||||||
|
|||||||
@@ -237,9 +237,17 @@
|
|||||||
}
|
}
|
||||||
// 保存快照,保存完毕后设置 coop_mind_log_last_id 和 coop_mind_log_id
|
// 保存快照,保存完毕后设置 coop_mind_log_last_id 和 coop_mind_log_id
|
||||||
if (me.coop_mind_log_id > me.coop_mind_log_last_id) {
|
if (me.coop_mind_log_id > me.coop_mind_log_last_id) {
|
||||||
Jm.util.ajax.post(me.coop_api_url, param, function (resp) {
|
$.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
|
me.coop_mind_log_last_id = me.coop_mind_log_id
|
||||||
})
|
},
|
||||||
|
async: false
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}, 10000)
|
}, 10000)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user