Commit dba9196f authored by rockyl's avatar rockyl

修复没有序列化custom的问题

parent cd25a6b9
...@@ -75,7 +75,7 @@ async function packData(data, {getProcesses, getScripts, getCustoms}) { ...@@ -75,7 +75,7 @@ async function packData(data, {getProcesses, getScripts, getCustoms}) {
newData.customs = []; newData.customs = [];
if (data.customs && data.customs.length > 0) { if (data.customs && data.customs.length > 0) {
newData.customs = await getCustoms(data.customs).map(item => { newData.customs = (await getCustoms(data.customs)).map(item => {
return JSON.parse(item); return JSON.parse(item);
}); });
} }
......
This diff is collapsed.
...@@ -79,7 +79,7 @@ async function packData(data, {getProcesses, getScripts, getCustoms}) { ...@@ -79,7 +79,7 @@ async function packData(data, {getProcesses, getScripts, getCustoms}) {
newData.customs = []; newData.customs = [];
if (data.customs && data.customs.length > 0) { if (data.customs && data.customs.length > 0) {
newData.customs = await getCustoms(data.customs).map(item => { newData.customs = (await getCustoms(data.customs)).map(item => {
return JSON.parse(item); return JSON.parse(item);
}); });
} }
......
This diff is collapsed.
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
newData.customs = []; newData.customs = [];
if (data.customs && data.customs.length > 0) { if (data.customs && data.customs.length > 0) {
newData.customs = await getCustoms(data.customs).map(item => { newData.customs = (await getCustoms(data.customs)).map(item => {
return JSON.parse(item); return JSON.parse(item);
}); });
} }
......
This diff is collapsed.
...@@ -75,7 +75,7 @@ async function packData(data, {getProcesses, getScripts, getCustoms}) { ...@@ -75,7 +75,7 @@ async function packData(data, {getProcesses, getScripts, getCustoms}) {
newData.customs = []; newData.customs = [];
if (data.customs && data.customs.length > 0) { if (data.customs && data.customs.length > 0) {
newData.customs = await getCustoms(data.customs).map(item => { newData.customs = (await getCustoms(data.customs)).map(item => {
return JSON.parse(item); return JSON.parse(item);
}) })
} }
......
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