修正了分页

This commit is contained in:
luyuan 2020-10-19 08:59:04 +08:00
parent ce3104abce
commit c3e33c70b5
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -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() {