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(