从简单到复杂完善组织架构

This commit is contained in:
2025-04-18 18:24:08 +08:00
parent e615aefaee
commit c73a7b48fa
14 changed files with 78 additions and 238 deletions

View File

@@ -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
}