跳到主要内容

系统

获取配置中心配置项值

this.$system.getCustomConfigByName(key);

支持版本:V3.4.0

输入参数

参数类型必填说明
keystring配置项名称

返回内容

返回一个Promise类型的对象,可以直接通过then来处理正确回调,通过catch来处理错误回调

示例代码

dataForm.$system.getCustomConfigByName('abc').then(res=>{
console.log('configValue:',res)
})