* Fix stepType error.

This commit is contained in:
liumengyi
2023-07-26 15:27:00 +08:00
parent 8cf888be1a
commit 1f9d8e3a3b
+1 -1
View File
@@ -141,7 +141,7 @@ class StepsEditor extends zui.Component
.removeClass('is-expired');
$row.find('.steps-editor-step-name').css('width', 6 + (item.level * 18)).text(item.name);
$row.find('.steps-editor-step-text').attr('name', `${options.name}[${item.name}]`);
$row.find('.steps-editor-step-type').attr('name', `stepType[${item.name}]`).val(hasSub ? 'item' : 'step');
$row.find('.steps-editor-step-type').attr('name', `stepType[${item.name}]`).val(hasSub ? (!!item.parent ? 'item' : 'group') : 'step');
const $expect = $row.find('.steps-editor-step-expect').attr(
{
name: `${options.expectsName}[${item.name}]`,