Excuse me, why I had use $.ajax to get options, but `vue-treeselect` not work.
See original GitHub issueI had use $.ajax to get some result, and bind with :option
.
But vue-treeselect
show me “no options avaliable”.
my result’s format fits your rules.
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
ajax loading not working · Issue #62 · riophae/vue-treeselect
Hi, I don't manage to load options via Ajax request. The options come in : but the nodemap stays empty : When I...
Read more >Vue2 Tree Select Ajax call failing to load options
The JSON response from backend is correct. The problem is in using this tree select library to load options dynamically through an ajax...
Read more >Vue-Treeselect
If your data of options is loaded via AJAX and have a different data structure than what vue-treeselect asks, e.g. your data has...
Read more >Making the Move from jQuery to Vue - CSS-Tricks
Vue's code doesn't have a tie back to the DOM (outside of the el ... that does mean a bit more work, but...
Read more >Select option with ajax not working as expected - October CMS
I have the following code on a page: PHP code section function onSelecaoGE(){ $this['temp'] = post('selecaoge'); }. and on page html
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
似乎是直接修改了你绑定的那个 options 数组?vue-treeselect 由于实现上的原因,不能响应 options 数组的变化,所以如果需要动态加载选项的话,请参考一下文档这个部分:https://riophae.github.io/vue-treeselect/#delayed-loading
@zgj233 请看一下这条评论 https://github.com/riophae/vue-treeselect/issues/4#issuecomment-341943297