Commit 14297750 authored by liujiangnan's avatar liujiangnan

fix: 路由控制

parent 09ccf0f7
...@@ -53,6 +53,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -53,6 +53,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
async initData() { async initData() {
const route = this.popRouter(); const route = this.popRouter();
if (route) { if (route) {
cc.find(`Canvas/lefttop/bg_title/title`).getComponent(cc.Label).string = route.name;
cc.find(`Canvas/lefttop`).active = true;
this.rows = await this.loadData(route.id); this.rows = await this.loadData(route.id);
} else { } else {
this.rows = await this.loadData(); this.rows = await this.loadData();
......
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