This commit is contained in:
aqu415
2022-02-15 20:53:30 +08:00
parent 4074afd250
commit 2782fda765
3 changed files with 44 additions and 47 deletions
+3 -1
View File
@@ -21,6 +21,7 @@
const fetch = function () {
this.jm = null
this.coop_mind_id = null
this.coop_mind_log_id = null
}
// prototype
fetch.prototype = {
@@ -37,13 +38,14 @@
loadMind: function () {
// 打开已有脑图1、查询数据,组装option 2、实例化jm、show
let id = {{ id }};
this.coop_mind_id = id
const me = this
$.get('list?id=' + id, function (resp) {
// reset
me.destroy_coop_timer_if_necessary()
// show
let data = resp.data.snapshot_data
me.coop_mind_id = id
me.coop_mind_log_id = resp.data.snapshot_log_id
me.show_mind(resp.data.coop_mind_name, JSON.parse(data))
})
},