Commit b40106e8 authored by wcmoon's avatar wcmoon

fix: 修改文本数组表现形式的保存

parent 06f5a3f5
...@@ -19,8 +19,6 @@ const configModules = { ...@@ -19,8 +19,6 @@ const configModules = {
"sy_prod": { "sy_prod": {
// CHAIN_BROWSER_URL_PREFIX: 'https://cx.chain33.pro/', // CHAIN_BROWSER_URL_PREFIX: 'https://cx.chain33.pro/',
// INERFACE_URL_PREFIX: 'https://sy.chain33.pro/api', // INERFACE_URL_PREFIX: 'https://sy.chain33.pro/api',
// CHAIN_BROWSER_URL_PREFIX: 'http://172.16.101.87:8995/',
// INERFACE_URL_PREFIX: 'http://172.16.101.87:8994/',
CHAIN_BROWSER_URL_PREFIX: 'http://121.40.18.70:8995/', CHAIN_BROWSER_URL_PREFIX: 'http://121.40.18.70:8995/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789', INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX: { INDEX: {
......
...@@ -197,17 +197,17 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr ...@@ -197,17 +197,17 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr
}; };
} }
else if (property.type === PropertyType.TextArray) { else if (property.type === PropertyType.TextArray) {
let data = (property.value as [string])?.map((item:string) => { let data = property.value === '' ? [{
format: "string",
type: "text",
value: ''
}] : (property.value as [string])?.map((item:string) => {
return { return {
format: "string", format: "string",
type: "text", type: "text",
value: item value: item
} }
}) || [{ });
format: "string",
type: "text",
value: ''
}]
return { return {
key: property.key, key: property.key,
type: (property.type as PropertyType.TextArray), type: (property.type as PropertyType.TextArray),
......
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