Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7dbb48ad90 | ||
|
|
88af4a2d96 |
+4
-4
@@ -225,7 +225,7 @@ export class SimApiCore {
|
|||||||
};
|
};
|
||||||
const resp = await this.query<any>('/config', {}, endpointName)
|
const resp = await this.query<any>('/config', {}, endpointName)
|
||||||
if (resp?.data) {
|
if (resp?.data) {
|
||||||
const d = resp.data.versions;
|
const d = resp.data.Versions;
|
||||||
versions.apiApp = d.App?.split('+')[0] ?? '0.0.0';
|
versions.apiApp = d.App?.split('+')[0] ?? '0.0.0';
|
||||||
versions.apiSimApi = d.SimApi?.split('+')[0] ?? '0.0.0';
|
versions.apiSimApi = d.SimApi?.split('+')[0] ?? '0.0.0';
|
||||||
versions.apiAppFull = d.App ?? '0.0.0';
|
versions.apiAppFull = d.App ?? '0.0.0';
|
||||||
@@ -233,9 +233,9 @@ export class SimApiCore {
|
|||||||
if (this.debug) {
|
if (this.debug) {
|
||||||
console.log(`UI主应用版本: ${versions.uiApp}\nUISimApi版本: ${versions.uiSimApi}\nAPI主应用版本: ${versions.apiApp}\nAPISimApi版本: ${versions.apiSimApi}`)
|
console.log(`UI主应用版本: ${versions.uiApp}\nUISimApi版本: ${versions.uiSimApi}\nAPI主应用版本: ${versions.apiApp}\nAPISimApi版本: ${versions.apiSimApi}`)
|
||||||
}
|
}
|
||||||
resp.data.versions = versions;
|
const conf = JSON.parse(JSON.stringify(resp.data));
|
||||||
this.webConfig.set(endpointName, resp.data);
|
conf.Versions = versions;
|
||||||
|
this.webConfig.set(endpointName, conf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this.webConfig.get(endpointName)!;
|
return this.webConfig.get(endpointName)!;
|
||||||
|
|||||||
Reference in New Issue
Block a user