fix(home): 更新标签页切换事件处理函数
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user