Skip to content

Commit

Permalink
fix(courses all): Update page when filter
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdenecker committed Aug 14, 2023
1 parent 07420f7 commit d7c951e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/courses-all.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default {
for (const [kt, t] of Object.entries(n.children)) {
for (const [kc, c] of Object.entries(t.children)) {
var temp = c;
temp['parentPath'] = t._path
temp["parentPath"] = t._path;
temp["langImage"] = n.image;
temp["langName"] = n.title;
temp["type"] = t.title;
Expand All @@ -118,6 +118,7 @@ export default {
methods: {
filter() {
if (this.radioLang) {
this.page = 1;
const temp = this.data.filter(filterJson, this.radioLang);
this.datafilter = temp;
}
Expand All @@ -137,6 +138,7 @@ export default {
this.datafilter = this.data;
this.radioLang = null;
this.datafilterPaginate = this.paginate();
this.page = 1;
},
changePath(pathParent, id) {
const router = useRouter();
Expand Down

0 comments on commit d7c951e

Please sign in to comment.