从简单到复杂完善组织架构
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import {isArr} from "licia";
|
||||
|
||||
const information = {
|
||||
debug: true,
|
||||
baseUrl: 'http://localhost:8080',
|
||||
@@ -17,4 +19,23 @@ export function amisRender(target, amisJson) {
|
||||
enableAMISDebug: information.debug,
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
function parseEdges (edges) {
|
||||
if (isArr(edges)) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export function amisElideGraphQLAdaptor(payload, response, api, context) {
|
||||
// console.log(payload, response, api, context)
|
||||
let result = []
|
||||
console.log(payload)
|
||||
if (payload.data) {
|
||||
let items = payload.data[Object.keys(payload.data)[0]]['edges']
|
||||
for(let item of items) {
|
||||
result.push(item.node)
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user