增加local模式自定义服务器url
This commit is contained in:
parent
f2c5ec5fed
commit
ce8f68917a
14
common.js
14
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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user