Commit 820ebea1 authored by 田翔's avatar 田翔

fix: 计算属性参数优化

parent 4ba792f0
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.7.7", "version": "5.7.8",
"description": "5.7.7 计算规则优化", "description": "5.7.8 计算属性参数优化",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -32,7 +32,7 @@ const jsonToValues = (data, paths) => { ...@@ -32,7 +32,7 @@ const jsonToValues = (data, paths) => {
if (Array.isArray(paths)) { if (Array.isArray(paths)) {
paths.forEach(v => { paths.forEach(v => {
let fieldName = v.path.split('.')[1] let fieldName = v.path.split('.')[1]
let fieldValue = '0' let fieldValue = ''
let item = formValue.find(s => s.fieldName === fieldName) let item = formValue.find(s => s.fieldName === fieldName)
if (item) { if (item) {
fieldValue = item.fieldValue fieldValue = item.fieldValue
......
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 to comment