feat: 优化列表

This commit is contained in:
2025-12-12 16:27:30 +08:00
parent 0ab9216ed8
commit 9ddd9c2326

View File

@ -60,7 +60,8 @@ const fetchData = () => {
}
const url = activeTab.value === 'xxy' ? '/mosty-gsxt/xxcj/mjjf/cjrList' : '/mosty-gsxt/xxcj/mjjf/ypyList'
qcckGet(params, url).then(res => {
tableData.value = res || []
tableData.value = Array.isArray(res) ? res : []
tableData.value = tableData.value.slice(0, 100) // 取前100条数据避免卡顿
}).catch(error => {
tableData.value = []
})