diff --git a/src/components/craft/AddCraft/index.vue b/src/components/craft/AddCraft/index.vue index 615a518..291f1e5 100644 --- a/src/components/craft/AddCraft/index.vue +++ b/src/components/craft/AddCraft/index.vue @@ -87,15 +87,10 @@ const okHandle = async () => { if (step.params.hours || step.params.minutes || step.params.seconds) { step.params.second = (step.params.hours || 0) * 3600 + (step.params.minutes || 0) * 60 + (step.params.seconds || 0) || undefined } - else { - step.params.second = undefined - } + console.log(step.params) if (step.params.coolingHours || step.params.coolingMinutes || step.params.coolingSeconds) { step.params.coolingSecond = (step.params.coolingHours || 0) * 3600 + (step.params.coolingMinutes || 0) * 60 + (step.params.coolingSeconds || 0) || undefined } - else { - step.params.coolingSecond = undefined - } } step.params.description = `${index + 1}.` switch (step.method) {