feat: 优化列表
This commit is contained in:
@ -60,7 +60,8 @@ const fetchData = () => {
|
|||||||
}
|
}
|
||||||
const url = activeTab.value === 'xxy' ? '/mosty-gsxt/xxcj/mjjf/cjrList' : '/mosty-gsxt/xxcj/mjjf/ypyList'
|
const url = activeTab.value === 'xxy' ? '/mosty-gsxt/xxcj/mjjf/cjrList' : '/mosty-gsxt/xxcj/mjjf/ypyList'
|
||||||
qcckGet(params, url).then(res => {
|
qcckGet(params, url).then(res => {
|
||||||
tableData.value = res || []
|
tableData.value = Array.isArray(res) ? res : []
|
||||||
|
tableData.value = tableData.value.slice(0, 100) // 取前100条数据,避免卡顿
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
tableData.value = []
|
tableData.value = []
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user