优化刷新方法
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user