Commit 9534d80d authored by liujiangnan's avatar liujiangnan

feat: 默认值

parent 5fe12075
...@@ -13,7 +13,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -13,7 +13,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
async onLoadEnd() { async onLoadEnd() {
const middleLayer = cc.find('middleLayer'); const middleLayer = cc.find('middleLayer');
if (middleLayer) { if (middleLayer) {
this.orgId = middleLayer.getComponent('middleLayer').ORG_ID; this.orgId = middleLayer.getComponent('middleLayer').ORG_ID || 507;
} }
await this.initData(); await this.initData();
await this.initView(); await this.initView();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment