| | |
| | | |
| | | let deffers = params.map(item => { |
| | | let componentId = item.componentId |
| | | let ispublic = item.public |
| | | delete item.componentId |
| | | delete item.public |
| | | return new Promise(resolve => { |
| | |
| | | } else { |
| | | res.componentId = componentId |
| | | |
| | | if (ispublic) { |
| | | let _data = { $$empty: true } |
| | | if (res.data && res.data[0]) { |
| | | _data = res.data[0] |
| | | } |
| | | window.GLOB.CacheData.set(componentId, _data) |
| | | let _data = { $$empty: true } |
| | | if (res.data && res.data[0]) { |
| | | _data = res.data[0] |
| | | } |
| | | window.GLOB.CacheData.set(componentId, _data) |
| | | |
| | | resolve(res) |
| | | } |
| | | }) |