Commit f53e29a3 authored by liujiangnan's avatar liujiangnan

debug

parent 14297750
...@@ -51,7 +51,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -51,7 +51,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
async initData() { async initData() {
const route = this.popRouter();
const routes = this.getRouters();
const route = (routes&&routes.length>0) ? routes[routes.length-1] : null;
if (route) { if (route) {
cc.find(`Canvas/lefttop/bg_title/title`).getComponent(cc.Label).string = route.name; cc.find(`Canvas/lefttop/bg_title/title`).getComponent(cc.Label).string = route.name;
cc.find(`Canvas/lefttop`).active = true; cc.find(`Canvas/lefttop`).active = true;
......
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