1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

fix: 解析病毒扫描内容格式处理 (#6790)

This commit is contained in:
2024-10-21 22:06:20 +08:00 committed by GitHub
parent f47f7c7361
commit d287fc1186
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -387,6 +387,10 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
MsgError(i18n.global.t('cronjob.cronSpecHelper'));
return;
}
}
dialogData.value.rowData.spec = spec;
if (dialogData.value.rowData!.hasAlert) {
dialogData.value.rowData.alertCount = dialogData.value.rowData!.hasAlert
? dialogData.value.rowData.alertCount
: 0;
@ -398,7 +402,6 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
dialogData.value.rowData.alertCount = 0;
dialogData.value.rowData.hasAlert = false;
}
dialogData.value.rowData.spec = spec;
if (dialogData.value.title === 'edit') {
await updateClam(dialogData.value.rowData)