👍️[Update] Model : tauri -> python のencode処理を整理

This commit is contained in:
misyaguziya
2024-09-03 18:18:58 +09:00
parent fb0a4a8f26
commit 7ae86268a9
4 changed files with 51 additions and 80 deletions

View File

@@ -4,7 +4,7 @@ import { encode } from 'js-base64'
export const useStdoutToPython = () => {
const asyncStdoutToPython = async (path, value) => {
let send_object = { endpoint: path };
if (value) send_object.data = encode(value);
if (value) send_object.data = encode(JSON.stringify(value));
// send to python
const backend_subprocess = store.backend_subprocess;