fix: 修复npm-event单测id根据时间命名可能会导致报错的问题

This commit is contained in:
刘洪洪
2023-02-23 10:54:18 +08:00
parent 4d6c444b25
commit 46a0985f55
2 changed files with 7 additions and 6 deletions

View File

@@ -29,7 +29,7 @@
<template v-else-if="item.prop === 'eventType'">
<span class="data-recent-table-eventType" :test-id="`eventType-${scope.row.eventType}-${scope.$index}`">{{scope.row[item.prop]}}</span>
</template>
<span v-else-if="scope.row[item.prop]" :test-id="`startTime-${scope.row.startTime}-${scope.$index}`">{{scope.row[item.prop]}}</span>
<span v-else-if="scope.row[item.prop]" :test-id="`startTime-${scope.$index}`">{{scope.row[item.prop]}}</span>
<span v-else>-</span>
</div>
</template>
@@ -125,6 +125,7 @@ export default {
}
})
this.tableData = res.data.result
console.log('打印tableData', this.tableData)
} else {
// this.isNoData = true
this.showError = true