Closed jotender closed 4 years ago
When did you call getDate
method ?
Oops! i omit this information
created: function(){
this.getDate();
}
this is my answer
So far v-selectmenu
are not support data source hot replace, it will supported in futrue release.
The current solve solution, try to use v-if
like this:
<v-selectmenu :data="app_list" v-if="app_list.length > 1"></v-selectmenu>
it works! thx!
I really think this should work out of the box. The following is a work-around that re-renders the element, triggering the life-cycle. It's more expensive unfortunately than hot reloading.
<v-selectmenu...
...
:key="dataToUse.length"
...>
In the last release, the result list will auto updated when data
prop change.
my system setting is here:
and my source code
However, v-selectmenu list can't update variable values. looks like this.
result:
How can i solve this problem?