Showing
1 changed file
with
5 additions
and
0 deletions
| 1 | import { Params } from 'wdBean'; | 1 | import { Params } from 'wdBean'; |
| 2 | +import { AppUtils, StringUtils } from 'wdKit/Index'; | ||
| 2 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; | 3 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; |
| 3 | import { EnvironmentCustomDialog } from './EnvironmentCustomDialog'; | 4 | import { EnvironmentCustomDialog } from './EnvironmentCustomDialog'; |
| 4 | 5 | ||
| @@ -32,6 +33,10 @@ export struct AboutPageUI { | @@ -32,6 +33,10 @@ export struct AboutPageUI { | ||
| 32 | aboutToAppear() { | 33 | aboutToAppear() { |
| 33 | let context = getContext(); | 34 | let context = getContext(); |
| 34 | context.getApplicationContext(); | 35 | context.getApplicationContext(); |
| 36 | + let appVerion = AppUtils.getAppVersionName() | ||
| 37 | + if (StringUtils.isNotEmpty(appVerion)) { | ||
| 38 | + this.version = "版本号:" + appVerion | ||
| 39 | + } | ||
| 35 | } | 40 | } |
| 36 | 41 | ||
| 37 | @Builder | 42 | @Builder |
-
Please register or login to post a comment