mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 06:15:53 +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}
|
||||
|
||||
// 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
|
||||
var output_obj = main(inputs_obj)
|
||||
|
Loading…
x
Reference in New Issue
Block a user