Merge pull request #110 from sijinhui/dev

Dev
This commit is contained in:
sijinhui 2024-05-28 08:40:12 +08:00 committed by GitHub
commit 6d96be2ca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -87,7 +87,7 @@ CMD if [ -n "$PROXY_URL" ]; then \
echo "[ProxyList]" >> $conf; \
echo "$protocol $host $port" >> $conf; \
cat /etc/proxychains.conf; \
proxychains -f $conf "node server.js --host 0.0.0.0"; \
proxychains -f $conf node server.js --host 0.0.0.0; \
else \
node server.js; \
fi

View File

@ -59,13 +59,15 @@ export default function VoiceInput({
if (!userInput || userInput.trim() === "") {
setTempUserInput("");
setVoiceInputText("");
recognizer.current?.close();
recognizer.current = undefined;
setVoiceInputLoading(false);
} else {
if (!/\[\.\.\.\]$/.test(userInput)) {
setTempUserInput(userInput);
}
}
}, [userInput]);
useEffect(() => {}, [tempUserInput]);
useEffect(() => {
if (voiceInputText.trim() !== "") {