Commit a3da2156 authored by wty's avatar wty

重写阿波罗配置获取2

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