Skip to content

Commit a2f57bc

Browse files
committed
增加了AppVersion
1 parent fe77c0e commit a2f57bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/simapi.core.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export type {
2727
} from './types'
2828

2929
declare const SimApiVersion: string;
30+
declare const AppVersion: string;
3031
// ── Helper: Fetch with Timeout ────────────────────────────────────────
3132

3233
function fetchWithTimeout(
@@ -203,7 +204,7 @@ export class SimApiCore {
203204
*/
204205
async getVersion(endpointName?: string): Promise<SimApiVersions> {
205206
const versions: SimApiVersions = {
206-
uiApp: '0.0.0-develop',
207+
uiApp: typeof AppVersion === 'undefined' ? "0.0.0-develop" : AppVersion,
207208
uiSimApi: typeof SimApiVersion === 'undefined' ? "0.0.0-develop" : SimApiVersion,
208209
apiApp: '0.0.0',
209210
apiSimApi: '0.0.0',

0 commit comments

Comments
 (0)