Topic filter improvements

This commit is contained in:
2020-09-28 08:24:42 +05:00
parent 0fd5e9e5c9
commit 0a0648036c
4 changed files with 9 additions and 6 deletions

View File

@@ -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);