Skip to content

Commit 19caff2

Browse files
author
18921220793
committed
fix:修复表单联动数据json解析错误问题
1 parent 192453e commit 19caff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/formCreate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const encodeConf = (designerRef: object) => {
1111
// 编码表单 Fields
1212
export const encodeFields = (designerRef: object) => {
1313
// @ts-ignore
14-
const rule = designerRef.value.getRule()
14+
const rule = JSON.parse(designerRef.value.getJson())
1515
const fields: string[] = []
1616
rule.forEach((item) => {
1717
fields.push(JSON.stringify(item))

0 commit comments

Comments
 (0)