Commit afcd5d4e authored by 田翔's avatar 田翔

fix: 环境变量修复

parent 0a6e792b
{
"name": "panda-xform",
"version": "5.1.1",
"description": "5.1.1 环境变量修改",
"version": "5.1.2",
"description": "5.1.2 环境变量修复",
"keywords": [
"panda-xform"
],
......
......@@ -50,23 +50,21 @@ const ValueEdit = (props) => {
useEffect(() => {
if (widget === 'TextInput') {
let value = presetValue
if (preview === 'preview') {
if (loaclPaths.includes(value)) {
if (value === '【本人姓名】') {
if (isStoreID) {
value = userInfo.OID + ''
} else {
value = userInfo.fullName
}
} else if (value === '【本人部门】') {
if (isStoreID) {
value = userInfo.depart.OID + ''
} else {
value = userInfo.depart.name
}
if (loaclPaths.includes(value)) {
if (value === '【本人姓名】') {
if (isStoreID) {
value = userInfo.OID + ''
} else {
value = userInfo.fullName
}
} else if (value === '【本人部门】') {
if (isStoreID) {
value = userInfo.depart.OID + ''
} else {
value = userInfo.depart.name
}
onChange({ fieldName, fieldValue: value })
}
onChange({ fieldName, fieldValue: value })
}
}
}, [])
......
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