增加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() {
|
export function getConfig() {
|
||||||
let config = {}
|
|
||||||
if (this.env === "LOCAL"){
|
const config = this.env === "LOCAL" ? {
|
||||||
config = {
|
name: 'LOCAL',
|
||||||
name: 'LOCAL',
|
baseUrl: this.url
|
||||||
baseUrl: this.url
|
} : configs[this.env];
|
||||||
}
|
|
||||||
}else{
|
|
||||||
config = configs[this.env]
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...config,
|
...config,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user