@@ -239,16 +249,20 @@ const beforeLeave = async (stepItem: any) => {
return false;
}
case 'appData':
- let appChecks = appRef.value.getCheckedNodes();
- loadCheckForSubmit(appChecks, form.appData);
+ if (form.appData && form.appData.length !== 0) {
+ let appChecks = appRef.value.getCheckedNodes();
+ loadCheckForSubmit(appChecks, form.appData);
+ }
return true;
case 'panelData':
let panelChecks = panelRef.value.getCheckedNodes();
loadCheckForSubmit(panelChecks, form.panelData);
return true;
case 'backupData':
- let backupChecks = backupRef.value.getCheckedNodes();
- loadCheckForSubmit(backupChecks, form.backupData);
+ if (form.backupData && form.backupData.length !== 0) {
+ let backupChecks = backupRef.value.getCheckedNodes();
+ loadCheckForSubmit(backupChecks, form.backupData);
+ }
return true;
}
};