ws
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
<script>
|
||||
const fetch = function () {
|
||||
this.jm = null
|
||||
this.coop_mind_id = null
|
||||
}
|
||||
// prototype
|
||||
fetch.prototype = {
|
||||
@@ -36,6 +37,7 @@
|
||||
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
|
||||
@@ -59,6 +61,7 @@
|
||||
theme: 'primary',
|
||||
coop_api_url: 'jsmind_op',
|
||||
coop_ws_url: `ws://${window.location.host}/ws/jsmind/`,
|
||||
coop_mind_id: this.coop_mind_id,
|
||||
menuOpts: {
|
||||
showMenu: true,
|
||||
injectionList: [
|
||||
|
||||
Reference in New Issue
Block a user