This commit is contained in:
aqu415
2022-02-24 21:37:53 +08:00
parent 1150b6b58d
commit b21f3cec38
5 changed files with 31 additions and 14 deletions
+1
View File
@@ -64,6 +64,7 @@
coop_api_url: 'jsmind_op',
coop_ws_url: `ws://${window.location.host}/ws/jsmind/`,
coop_mind_id: this.coop_mind_id,
coop_mind_log_id: this.coop_mind_log_id,
menuOpts: {
showMenu: true,
injectionList: [
+5 -1
View File
@@ -65,6 +65,8 @@
this.coop_mind_id = _jm.options.coop_mind_id
this.coop_mind_log_id = _jm.options.coop_mind_log_id
this.coop_mind_log_last_id = _jm.options.coop_mind_log_id
console.log(this.coop_mind_log_id)
},
// 初始化websocket
_init_ws: function () {
@@ -96,7 +98,9 @@
},
// 获得一次日志
fetch_log: function () {
Jm.util.ajax.get(`${this.coop_api_url}?coop_mind_id=${this.coop_mind_id}&cooperation_mind_log_id=${this.coop_mind_log_id}`, function (resp) {
console.log(resp)
})
},
// 清理定时任务
clear_timer: function () {