From 45fa7d28853cd2e3cb4ce4b64bb0aa3db4445e45 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Tue, 26 Dec 2023 18:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mock/index.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/views/mock/index.vue b/src/views/mock/index.vue index 6d92f24..7ead8ec 100644 --- a/src/views/mock/index.vue +++ b/src/views/mock/index.vue @@ -36,7 +36,7 @@ const tabs_array = computed(()=>{ return tabs }) -const activeName = ref('0') +const activeName = ref(tabs_array.value.length > 0 ? tabs_array[0].name : '') const handleClick = (tab, event) => { console.log(tab, event) } @@ -76,16 +76,19 @@ const handleCheckAllChange = (val) => { checkedMockConfig.value = [] return } + console.log(tabs_array.value.length) checkedMockConfig.value = val ? mockConfigItems : [] isIndeterminate.value = false } - const handleCheckedMockChange = (value) => { + if (select_ip.value === '') { alert('请先选择测试影院IP!') checkedMockConfig.value = [] return } + console.log(tabs_array.value.length) + console.log(tabs_array.value.length) const checkedCount = value.length checkAll.value = checkedCount === mockConfigItems.length isIndeterminate.value = checkedCount > 0 && checkedCount < mockConfigItems.length @@ -194,7 +197,12 @@ onMounted(
- + + +
+ xxx +
+