lowcode-plugins
lowcode-plugins copied to clipboard
fix: schema2jsCode Compatibility issues
我想在运行时用户操作后生成一些自定义方法,修改了schema的methods,然后重新生成js code,发现一个兼容性问题,如果我在前端页面没有先打开js编辑器的面板的话,所有的function都会变成funcName funcName这种形式
(schema.componentsTree[0] as any).originCode = undefined;
(schema.componentsTree[0] as any).originCode = await schema2JsCode(schema);