|
@@ -100,18 +100,7 @@ struct EntryView {
|
|
|
}
|
|
|
|
|
|
async aboutToAppear() {
|
|
|
- Log.showInfo(TAG, 'aboutToAppear');
|
|
|
- this.mStage.onCreate();
|
|
|
- this.navigationBarStatus = SettingsModel.getInstance().getValue();
|
|
|
- this.getWindowSize();
|
|
|
- this.updateScreenSize();
|
|
|
-
|
|
|
- this.registerPageDesktopNavigatorStatusChangeEvent(this.mLocalEventListener);
|
|
|
- //register orientation listener
|
|
|
- this.mOrientationListener.on('change', this.onPortrait);
|
|
|
-
|
|
|
- ElectricScrewdriverPresetModel.initTaskDB(getContext())
|
|
|
- ElectricSolderingIronPresetModel.initTaskDB(getContext())
|
|
|
+ console.log('hhtest', 'aboutToAppear');
|
|
|
// 获取工位ip
|
|
|
this.stationIp = CommonConstants2.STATION_DEFAULT_IP
|
|
|
try {
|
|
@@ -141,6 +130,16 @@ struct EntryView {
|
|
|
}
|
|
|
this.connectMQTT()
|
|
|
}, 1000);
|
|
|
+ this.mStage.onCreate();
|
|
|
+ this.navigationBarStatus = SettingsModel.getInstance().getValue();
|
|
|
+ this.getWindowSize();
|
|
|
+ this.updateScreenSize();
|
|
|
+ this.registerPageDesktopNavigatorStatusChangeEvent(this.mLocalEventListener);
|
|
|
+ //register orientation listener
|
|
|
+ this.mOrientationListener.on('change', this.onPortrait);
|
|
|
+ ElectricScrewdriverPresetModel.initTaskDB(getContext())
|
|
|
+ ElectricSolderingIronPresetModel.initTaskDB(getContext())
|
|
|
+
|
|
|
}
|
|
|
|
|
|
registerPageDesktopNavigatorStatusChangeEvent(listener: LocalEventListener): void {
|