I have one component in vue js 2 and vuetify that receibe this data:
[ { "anio": 2022, "__typename": "Grupo" }, { "anio": 2020, "__typename": "Grupo" }, { "anio": 2018, "__typename": "Grupo" }, { "anio": 2017, "__typename": "Grupo" }, { "anio": 2016, "__typename": "Grupo" }, { "anio": 2015, "__typename": "Grupo" }, { "anio": 2014, "__typename": "Grupo" } ]
this object array
it´s used in :items
to v-autocomplete
property.
<v-autocomplete
v-model="anyo"
:items="listAnyos"
But my problem it´s i need option selected v-model
that contains: 2023
never selected this option
This data it´s getted from graphql
and it´s sending to other component. All data it´s in listAnyos
but i need to do, that if query graphql it´s empty set anyo
or current year in v-autocomplete
Thanks for readme and sorry for my bad english