From 72c31e30b6d81239a3722edd863be371ab1d3ab6 Mon Sep 17 00:00:00 2001 From: yxw <17074267@qq.com> Date: Thu, 23 Nov 2023 11:54:41 +0800 Subject: [PATCH] fix --- home.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home.html b/home.html index 7cb1975..76d6d47 100644 --- a/home.html +++ b/home.html @@ -1263,10 +1263,10 @@ let resData = res if (resData.success) { data = resData.content - lineinputValue = data.lineinput.audio.toFixed(1) - mic1Value = data.mic1.audio.toFixed(1) - mic2Value = data.mic2.audio.toFixed(1) - outputValue = data.output.audio.toFixed(1) + lineinputValue = parseFloat(data.lineinput.audio).toFixed(1) + mic1Value = parseFloat(data.mic1.audio).toFixed(1) + mic2Value = parseFloat(data.mic2.audio).toFixed(1) + outputValue = parseFloat(data.output.audio).toFixed(1) console.log(typeof (lineinputValue), typeof (mic1Value), typeof (mic2Value), typeof (outputValue)) bindData() }