Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用jquery监听点击,在方法里调用jm.get_selected_node()返回的却是null? #637

Open
Yipper0915 opened this issue Nov 4, 2024 · 1 comment

Comments

@Yipper0915
Copy link

async mounted() {
const savedData = JSON.parse(localStorage.getItem('tempMindData'))
// 检查临时状态是否有数据
if (savedData && this.entranceFlag !== 1) {
console.log('进入savedData', savedData)
this.mind.data = savedData
} else {
await this.fetchData()
}
console.log('实例化之前this.mind', this.mind)
this.jm = new JsMind(this.options)
this.jm.show(this.mind)
// this.jm.expand_to_depth(4)
this.$nextTick(() => {
$("#jsmind_container").on('click', (event) => {
this.handleJsmindClick(event);
});
})

},

@Yipper0915
Copy link
Author

已解决,增加这个属性就好了 虽然不知道为什么?enable_dblclick_handle: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant