xbx #158

Merged
theluyuan merged 2 commits from xbx into master 2020-11-25 06:52:00 +00:00
Showing only changes of commit 468682172f - Show all commits

View File

@ -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,