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