修正了分页
This commit is contained in:
parent
ce3104abce
commit
c3e33c70b5
@ -83,7 +83,7 @@
|
||||
></VideoItem>
|
||||
</div>
|
||||
<div class="pages">
|
||||
<a-pagination v-model:current="page" :total="50" :showLessItems="true" @change="pagechange" />
|
||||
<a-pagination v-model:current="page" :total="videolist.total" :showLessItems="true" @change="pagechange" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -232,6 +232,7 @@ export default defineComponent({
|
||||
}
|
||||
async function sel(){
|
||||
console.log(input.value);
|
||||
page.value = 1;
|
||||
videolist.value = await getvideolist({title: input.value,page:page.value});
|
||||
}
|
||||
async function pagechange() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user