fix:修复assetDiscovery返回数据为underfind时 表格排序错误

This commit is contained in:
zyh
2023-06-14 15:53:00 +08:00
parent eae570aef8
commit 7adada6348
3 changed files with 1 additions and 2 deletions

View File

@@ -30,7 +30,6 @@
:resizable="true"
:width="`${item.width}`"
class="data-column"
:sort-orders="['ascending', 'descending']"
:sortable="item.sortable"
:sort-orders="['ascending', 'descending']"
:sort-method="item.sortMethod"

View File

@@ -30,7 +30,6 @@
:resizable="true"
:width="`${item.width}`"
class="data-column"
:sort-orders="['ascending', 'descending']"
:sortable="item.sortable"
:sort-orders="['ascending', 'descending']"
:sort-method="item.sortMethod"

View File

@@ -378,6 +378,7 @@ export default {
// 防止数据为underfind 表格排序错误
response.data.list.forEach(item => {
item.sysName = item.sysName ? item.sysName : ''
item.sysObjectId = item.sysObjectId ? item.sysObjectId : ''
})
this.tableData.push(...response.data.list)
// 收到数据loading取消