Topic filter improvements
This commit is contained in:
@@ -64,7 +64,10 @@ import * as moment from "moment";
|
||||
|
||||
export default {
|
||||
name: "topic-filter",
|
||||
props: ['topic','label'],
|
||||
props: {
|
||||
topics : String,
|
||||
label : String
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
@@ -82,9 +85,9 @@ export default {
|
||||
|
||||
mounted() {
|
||||
axios
|
||||
.get(`api/topic/${this.topic}`)
|
||||
.get(`api/topic_filter/?keys=${this.topics}`)
|
||||
.then(response => {
|
||||
this.articles = response.data.articles.data;
|
||||
this.articles = response.data.data;
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
|
Reference in New Issue
Block a user