增加mqtt
This commit is contained in:
@ -20,14 +20,6 @@ const config = {
|
||||
MQTT_USERNAME: 'admin',
|
||||
MQTT_PASSWORD: '#YtvpSfCNG'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// 根据环境获取配置
|
||||
function getConfig() {
|
||||
// 这里可以根据实际情况判断环境
|
||||
// 开发阶段使用development,上线后改为production
|
||||
const env = 'development' // 或者 'production'
|
||||
return config[env]
|
||||
}
|
||||
|
||||
export default getConfig()
|
||||
export default config;
|
Reference in New Issue
Block a user