fix(home): 更新标签页切换事件处理函数

This commit is contained in:
贾同学
2025-10-30 11:08:37 +08:00
parent aab884e524
commit 7f2275bad9

View File

@@ -8,7 +8,7 @@
:close-on-click-modal="false" :close-on-click-modal="false"
@close="handleClose" @close="handleClose"
> >
<el-tabs v-if="dialogVisible" v-model="activeName" @tab-click="handleTabClick"> <el-tabs v-if="dialogVisible" v-model="activeName" @tab-change="handleTabChange">
<el-tab-pane <el-tab-pane
v-for="(result, index) in resultData" v-for="(result, index) in resultData"
:key="result.monitorId" :key="result.monitorId"
@@ -233,8 +233,8 @@ const getResultData = async () => {
dialogVisible.value = true dialogVisible.value = true
} }
const handleTabClick = (tab: any) => { const handleTabChange = (name: any) => {
activeName.value = tab.name activeName.value = name
} }
const handleChooseClick = async () => { const handleChooseClick = async () => {
const currentResult = resultData.value[activeName.value] const currentResult = resultData.value[activeName.value]