🐛 fix plugin store pagination error

This commit is contained in:
yanyongyu 2021-01-24 14:36:11 +08:00
parent 109125b583
commit eb330c3260

View File

@ -44,7 +44,7 @@
<v-col <v-col
cols="12" cols="12"
sm="6" sm="6"
v-for="(plugin, index) in filteredPlugins" v-for="(plugin, index) in displayPlugins"
:key="index" :key="index"
> >
<v-card> <v-card>
@ -126,6 +126,9 @@ export default {
plugin.author.indexOf(this.filterText) != -1 plugin.author.indexOf(this.filterText) != -1
); );
}); });
},
displayPlugins() {
return this.filteredPlugins.slice((this.page - 1) * 10, this.page * 10);
} }
}, },
methods: { methods: {