Skip to content

Commit ae38239

Browse files
deep-project凹凸曼
andauthored
fix: 修复ssh日志为空时不渲染的问题 (#1394)
Co-authored-by: 凹凸曼 <xx@xx>
1 parent 6a63b2e commit ae38239

File tree

1 file changed

+1
-1
lines changed
  • frontend/src/views/host/ssh/log

1 file changed

+1
-1
lines changed

frontend/src/views/host/ssh/log/log.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const search = async () => {
141141
await loadSSHLogs(params)
142142
.then((res) => {
143143
loading.value = false;
144-
data.value = res.data.logs || [];
144+
data.value = res.data?.logs || [];
145145
faliedCount.value = res.data.failedCount;
146146
successfulCount.value = res.data.successfulCount;
147147
if (searchStatus.value === 'Success') {

0 commit comments

Comments
 (0)