|
|
@ -26,13 +26,12 @@ export default{
|
|
|
|
clickHome: function() {
|
|
|
|
clickHome: function() {
|
|
|
|
if(!this.homeClicked){
|
|
|
|
if(!this.homeClicked){
|
|
|
|
const api = new NewsService();
|
|
|
|
const api = new NewsService();
|
|
|
|
this.news = api.getNews();
|
|
|
|
let infos = api.getNews();
|
|
|
|
console.log(this.news);
|
|
|
|
|
|
|
|
this.homeClicked=true;
|
|
|
|
|
|
|
|
this.teamClicked=false;
|
|
|
|
|
|
|
|
let infos = api.getNews();
|
|
|
|
|
|
|
|
console.log(infos)
|
|
|
|
console.log(infos)
|
|
|
|
this.news = infos
|
|
|
|
this.news = infos
|
|
|
|
|
|
|
|
this.homeClicked=true;
|
|
|
|
|
|
|
|
this.teamClicked=false;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
else{
|
|
|
|
this.homeClicked=false;
|
|
|
|
this.homeClicked=false;
|
|
|
|