Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
style: watch logs key
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Mar 14, 2024
1 parent 6bcc6de commit 073f7c5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@
}
return props.fullscreen ? 'calc(100vh - 320px)' : '310px';
});
watch(
() => props.runData,
(newVal) => {
if (newVal) {
console.log(
'props.rundata.status=======',
props.runData?.status?.summaryStatus
);
}
},
{
immediate: true,
deep: true
}
);
const renderStaticLogs = () => {
if (props.runData?.record) {
Expand Down Expand Up @@ -69,6 +84,11 @@
show={props.show}
fullscreen={props.fullscreen}
runData={props.runData}
key={
props.runData?.status?.summaryStatus === RevisionStatus.Running
? 'running'
: 'planning'
}
></WatchLogs>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
);
onBeforeUnmount(() => {
axiosToken?.cancel?.();
window.cancelAnimationFrame(requestId);
});
</script>

Expand Down

0 comments on commit 073f7c5

Please sign in to comment.