优化刷新方法

This commit is contained in:
tao
2026-01-09 16:51:27 +08:00
parent c7f118dab1
commit 4371ced698
4 changed files with 24 additions and 4 deletions

View File

@@ -86,6 +86,11 @@ const fetchBoundEquipmentList = async () => {
}
}
const handleRefresh = () => {
fetchBoundEquipmentList();
renderTableHeight();
}
// 计算表格高度
const customTable = ref<HTMLElement | null>(null)
const tableHeight = ref(200)
@@ -109,7 +114,7 @@ fetchBoundEquipmentList()
<template>
<div class="equipment__container">
<Title name="绑定设备列表" showRefresh @refresh="fetchBoundEquipmentList" />
<Title name="绑定设备列表" showRefresh @refresh="handleRefresh" />
<a-row class="main-content" :gutter="24">
<a-col :span="10" class="input__container">
<a-row :gutter="12">