mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
fix launchpad initialization (#1826)
This commit is contained in:
parent
dd0ade0ed6
commit
f413e431e6
|
@ -9,17 +9,22 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
|
||||||
},
|
},
|
||||||
async init() {
|
async init() {
|
||||||
|
|
||||||
z2ui5.oConfig = {};
|
if (typeof z2ui5 !== 'undefined') {
|
||||||
|
z2ui5.oConfig = {};
|
||||||
|
}
|
||||||
|
|
||||||
UIComponent.prototype.init.apply(this, arguments);
|
UIComponent.prototype.init.apply(this, arguments);
|
||||||
|
|
||||||
if (typeof z2ui5 == 'undefined') {
|
if (typeof z2ui5 == 'undefined') {
|
||||||
z2ui5 = {};
|
z2ui5 = {};
|
||||||
}
|
}
|
||||||
if (z2ui5?.checkLocal == false) {
|
if (z2ui5?.checkLocal == false) {
|
||||||
z2ui5 = {};
|
z2ui5 = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof z2ui5.oConfig == 'undefined') {
|
||||||
|
z2ui5.oConfig = {};
|
||||||
|
}
|
||||||
z2ui5.oDeviceModel = Models.createDeviceModel();
|
z2ui5.oDeviceModel = Models.createDeviceModel();
|
||||||
this.setModel(z2ui5.oDeviceModel, "device");
|
this.setModel(z2ui5.oDeviceModel, "device");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user