Skip to content

Commit 5ca5489

Browse files
author
piexl
committed
fix:searchCard time bug
1 parent de9626e commit 5ca5489

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/taint/searchCard.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ export default class SearchCard extends VueBase {
256256
@Prop() showGraph: boolean | undefined
257257
@Prop() isApi: boolean | undefined
258258
formatTimestamp(time: number) {
259-
return formatTimestamp(time)
259+
if (time) {
260+
return formatTimestamp(time)
261+
} else {
262+
return ''
263+
}
260264
}
261265
private isEdit = false
262266
private reqStr = ''

0 commit comments

Comments
 (0)