mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 02:35:57 +08:00
fix: code node garbled in Javascript (#4615)
This commit is contained in:
parent
11642192d1
commit
5893ebec55
@ -12,7 +12,7 @@ class NodeJsTemplateTransformer(TemplateTransformer):
|
|||||||
{cls._code_placeholder}
|
{cls._code_placeholder}
|
||||||
|
|
||||||
// decode and prepare input object
|
// decode and prepare input object
|
||||||
var inputs_obj = JSON.parse(atob('{cls._inputs_placeholder}'))
|
var inputs_obj = JSON.parse(Buffer.from('{cls._inputs_placeholder}', 'base64').toString('utf-8'))
|
||||||
|
|
||||||
// execute main function
|
// execute main function
|
||||||
var output_obj = main(inputs_obj)
|
var output_obj = main(inputs_obj)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user