mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 09:38:21 +08:00
🐛 fix plugin store pagination error
This commit is contained in:
parent
109125b583
commit
eb330c3260
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user