diff --git a/src/components/PreSetting.vue b/src/components/PreSetting.vue index c6eef2b..747120b 100644 --- a/src/components/PreSetting.vue +++ b/src/components/PreSetting.vue @@ -259,10 +259,6 @@ const stoped_humi = ref('0') const continued_humi = ref('0') const pre_heat_time_s = ref('0') -const save = () => { - console.log(123) -} - const pre_heat_time_sShow = ref(false) const addLiquidConfigValShow = ref(false) const sprayLiquidConfigValShow = ref(false) @@ -277,6 +273,21 @@ const continued_humiShow = ref(false) const logVisible = ref(false) const logVal = ref('6') +const save = () => { + const data = { + loglevel: logVal.value, + injection_pump_speed: sprayLiquidConfigVal.value, + stoped_gs: stoped_gs.value, + continued_gs: continued_gs.value, + stoped_satur: stoped_satur.value, + continued_satur: continued_satur.value, + stoped_humi: stoped_humi.value, + continued_humi: continued_humi.value, + } + console.log(data) + props.hideSettingModal() +} + const changeLogVal = val => { logVal.value = val logVisible.value = false