Commit b8e35387 by 芋道源码 Committed by Gitee

!731 fix:修复表单联动数据json解析错误问题

Merge pull request !731 from 189******93/fix-form-create
parents d2b99331 19caff21
...@@ -11,7 +11,7 @@ export const encodeConf = (designerRef: object) => { ...@@ -11,7 +11,7 @@ export const encodeConf = (designerRef: object) => {
// 编码表单 Fields // 编码表单 Fields
export const encodeFields = (designerRef: object) => { export const encodeFields = (designerRef: object) => {
// @ts-ignore // @ts-ignore
const rule = designerRef.value.getRule() const rule = JSON.parse(designerRef.value.getJson())
const fields: string[] = [] const fields: string[] = []
rule.forEach((item) => { rule.forEach((item) => {
fields.push(JSON.stringify(item)) fields.push(JSON.stringify(item))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment