add if judge (#14290)

This commit is contained in:
jackfanwan 2023-06-07 14:57:48 +08:00 committed by GitHub
parent 929811760a
commit 6b1a952c6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 12 deletions

View File

@ -298,18 +298,19 @@ export default defineComponent({
</NFormItem>
<NFormItem label=' ' showFeedback={false}>
<NList>
<NListItem>
<NThing
description={t('project.workflow.next_five_execution_times')}
>
{this.schedulePreviewList.map((item: string) => (
<NSpace>
{item}
<br />
</NSpace>
))}
</NThing>
</NListItem>
{this.schedulePreviewList.length > 0 ?
<NListItem>
<NThing
description={t('project.workflow.next_five_execution_times')}
>
{this.schedulePreviewList.map((item: string) => (
<NSpace>
{item}
<br/>
</NSpace>
))}
</NThing>
</NListItem> : null}
</NList>
</NFormItem>
<NFormItem