修复了分页
This commit is contained in:
parent
c1c2a8a3f9
commit
468682172f
@ -175,7 +175,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, onMounted, ref } from "vue";
|
import { defineComponent, onMounted, ref, watch } from "vue";
|
||||||
import LiveItem from "@/components/LiveItem.vue";
|
import LiveItem from "@/components/LiveItem.vue";
|
||||||
import { getlivelist } from "@/api";
|
import { getlivelist } from "@/api";
|
||||||
import { LivelistInfo } from "@/types";
|
import { LivelistInfo } from "@/types";
|
||||||
@ -216,6 +216,14 @@ export default defineComponent({
|
|||||||
console.log(input.value);
|
console.log(input.value);
|
||||||
livelist.value = await getlivelist({title: input.value});
|
livelist.value = await getlivelist({title: input.value});
|
||||||
}
|
}
|
||||||
|
async function naxtpage(){
|
||||||
|
console.log(input.value);
|
||||||
|
livelist.value = await getlivelist({title: input.value, page: page.value});
|
||||||
|
}
|
||||||
|
watch(page,()=>{
|
||||||
|
console.log(page.value)
|
||||||
|
naxtpage()
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
page,
|
page,
|
||||||
|
Loading…
Reference in New Issue
Block a user