diff --git a/common.js b/common.js index 17ccfbe..f7e9c5e 100644 --- a/common.js +++ b/common.js @@ -979,15 +979,11 @@ export async function parsingCharacteristicValue(binaryData) { // 获取配置 export function getConfig() { - let config = {} - if (this.env === "LOCAL"){ - config = { - name: 'LOCAL', - baseUrl: this.url - } - }else{ - config = configs[this.env] - } + + const config = this.env === "LOCAL" ? { + name: 'LOCAL', + baseUrl: this.url + } : configs[this.env]; return { ...config,