fix: 修复ssh日志为空时不渲染的问题 (#1394)

Co-authored-by: 凹凸曼 <xx@xx>
This commit is contained in:
凹凸曼 2023-06-16 22:41:07 +08:00 committed by GitHub
parent 6a63b2e5c4
commit ae38239b47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ const search = async () => {
await loadSSHLogs(params)
.then((res) => {
loading.value = false;
data.value = res.data.logs || [];
data.value = res.data?.logs || [];
faliedCount.value = res.data.failedCount;
successfulCount.value = res.data.successfulCount;
if (searchStatus.value === 'Success') {