增加local模式自定义服务器url

This commit is contained in:
XieHaoLiang 2024-12-26 15:10:01 +08:00
parent f2c5ec5fed
commit ce8f68917a

View File

@ -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,