From ce8f68917ab1b3df9fa4d3048691d79aaa52dfb8 Mon Sep 17 00:00:00 2001 From: XieHaoLiang <806854015@qq.com> Date: Thu, 26 Dec 2024 15:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0local=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E6=9C=8D=E5=8A=A1=E5=99=A8url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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,