{"action":"created","issue":{"url":"https://api.github.com/repos/zdy1988/vue-jstree/issues/41","repository_url":"https://api.github.com/repos/zdy1988/vue-jstree","labels_url":"https://api.github.com/repos/zdy1988/vue-jstree/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/zdy1988/vue-jstree/issues/41/comments","events_url":"https://api.github.com/repos/zdy1988/vue-jstree/issues/41/events","html_url":"https://github.com/zdy1988/vue-jstree/issues/41","id":317532662,"number":41,"title":"后台load数据的问题","user":{"login":"jaja6","id":20276223,"avatar_url":"https://avatars2.githubusercontent.com/u/20276223?v=4","gravatar_id":"","url":"https://api.github.com/users/jaja6","html_url":"https://github.com/jaja6","followers_url":"https://api.github.com/users/jaja6/followers","following_url":"https://api.github.com/users/jaja6/following{/other_user}","gists_url":"https://api.github.com/users/jaja6/gists{/gist_id}","starred_url":"https://api.github.com/users/jaja6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaja6/subscriptions","organizations_url":"https://api.github.com/users/jaja6/orgs","repos_url":"https://api.github.com/users/jaja6/repos","events_url":"https://api.github.com/users/jaja6/events{/privacy}","received_events_url":"https://api.github.com/users/jaja6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-25T08:45:10Z","updated_at":"2018-04-25T12:25:51Z","closed_at":null,"author_association":"NONE","body":"我后台load数据到data中的一个list，然后照着demo写了，数据是帮上去了，但是点击事件都没了，如果我用后来load的json数据直接写到data里，就没有这个问题，能帮忙看看吗"},"comment":{"url":"https://api.github.com/repos/zdy1988/vue-jstree/issues/comments/384268098","html_url":"https://github.com/zdy1988/vue-jstree/issues/41#issuecomment-384268098","issue_url":"https://api.github.com/repos/zdy1988/vue-jstree/issues/41","id":384268098,"user":{"login":"zdy1988","id":6028407,"avatar_url":"https://avatars0.githubusercontent.com/u/6028407?v=4","gravatar_id":"","url":"https://api.github.com/users/zdy1988","html_url":"https://github.com/zdy1988","followers_url":"https://api.github.com/users/zdy1988/followers","following_url":"https://api.github.com/users/zdy1988/following{/other_user}","gists_url":"https://api.github.com/users/zdy1988/gists{/gist_id}","starred_url":"https://api.github.com/users/zdy1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdy1988/subscriptions","organizations_url":"https://api.github.com/users/zdy1988/orgs","repos_url":"https://api.github.com/users/zdy1988/repos","events_url":"https://api.github.com/users/zdy1988/events{/privacy}","received_events_url":"https://api.github.com/users/zdy1988/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T12:25:51Z","updated_at":"2018-04-25T12:25:51Z","author_association":"OWNER","body":"嗯，是这样的\r\n是因为树在初始化的时候会将数据做一次初始化\r\n就是 你的节点数据即使是 { text: 'text1' } ，我会自动将节点数据初始化成 {text: 'text1', value: 'text1' ,opened:  false ...等等}\r\n你在获取了数据列表，直接赋值data时，组件获取不到 opened 或者 selected 的状态信息，所以失效了，\r\n你可以尝试用我提供的方法，初始化一下你的数据\r\n\r\nthis.treeList = this.$refs.tree.initializeData( **yourdata** ) \r\n\r\n不过我觉得这么做不太好，你最好还是用**async**来load你的数据"}}
{"actor":{"display_login":"zdy1988"}}