diff --git a/src/views/regime/Live.vue b/src/views/regime/Live.vue index 694142b..626a751 100644 --- a/src/views/regime/Live.vue +++ b/src/views/regime/Live.vue @@ -187,7 +187,7 @@ export default defineComponent({ setup() { const lan: any = useI18n(); const page = ref(1); - const tabindex = ref(1); + const tabindex = ref(1); const livelist = ref({ code: 0, total: 0, @@ -200,7 +200,11 @@ export default defineComponent({ }); async function tab(){ input.value = ''; - livelist.value = await getlivelist({ status: tabindex.value}); + let index: string | number = ''; + if(tabindex.value != 1){ + index = tabindex.value + } + livelist.value = await getlivelist({ status: index}); } function tabchange(e: number): void {