Answer the question
In order to leave comments, you need to log in
Show list data again in detail view?
There is a component in which I take data from the api
import axios from "axios";
axios.defaults.withCredentials = true;
export default {
name: "Index",
data: function() {
return {
data:{
lastname:null,
},
list:null,
};
},
mounted() {
axios
.post('/api/test/cm/main/index')
.then(response => (this.list=response['data']['list']),
)
.catch(function () {
self.$router.push('/');
});
},
};
<router-link to="/test/main/view/1">Просмотр</router-link>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question