Commit bbd45658 by Joey

fix(@gms/gms-plugin-billexpand): 写入主表模板字符串若字段为空不应显示undefined

parent 629849b7
...@@ -57,6 +57,7 @@ export default { ...@@ -57,6 +57,7 @@ export default {
for (let i = 1; i < value.length; ++i) { for (let i = 1; i < value.length; ++i) {
ans = ans[value[i]] ans = ans[value[i]]
} }
if (!ans) ans = ''
templateString = templateString.replace(str, ans) templateString = templateString.replace(str, ans)
}) })
return templateString return templateString
......
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