Commit a3da2156 authored by wty's avatar wty

重写阿波罗配置获取2

parent eba72725
......@@ -6,13 +6,13 @@ const apollo = require('@tuia/apollo')
console.info('CONFIG:', config)
const getApollo = async () => {
const config = await apollo.getApolloConfig({
const apolloConfig = await apollo.getApolloConfig({
systemName: 'dui123',
env: config.env,
accessKey: config.secret
})
console.info(config)
const sourcesArray = config.propertySources.map(v => v.source);
console.info(apolloConfig)
const sourcesArray = apolloConfig.propertySources.map(v => v.source);
const sources = Object.assign({},...sourcesArray)
return sources
}
......
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