configuración corregida, faltan pruebas
This commit is contained in:
parent
3da1bc7f8d
commit
dd2820929c
@ -14,9 +14,9 @@
|
|||||||
<option
|
<option
|
||||||
v-for="(p, index) in programas"
|
v-for="(p, index) in programas"
|
||||||
:key="index"
|
:key="index"
|
||||||
:value="p.id_programa"
|
:value="p.programa.id_programa"
|
||||||
>
|
>
|
||||||
{{ p.programa }}
|
{{ p.programa.programa }}
|
||||||
</option>
|
</option>
|
||||||
</b-select>
|
</b-select>
|
||||||
</b-field>
|
</b-field>
|
||||||
@ -43,7 +43,10 @@ export default {
|
|||||||
this.isLoadingSelect = true
|
this.isLoadingSelect = true
|
||||||
this.programas = []
|
this.programas = []
|
||||||
return axios
|
return axios
|
||||||
.get(`${process.env.api}/institucion-programa`, this.$getToken.token())
|
.get(
|
||||||
|
`${process.env.api}/institucion-programa/programas`,
|
||||||
|
this.$getToken.token()
|
||||||
|
)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.programas = res.data
|
this.programas = res.data
|
||||||
this.$emit('catalogo-programas', this.programas)
|
this.$emit('catalogo-programas', this.programas)
|
||||||
|
Loading…
Reference in New Issue
Block a user