一、修改菜单组件
1.找到app目录下main\core\index\component\indexLeftMenu.js文件
2.修改initComponent函数,代码内容如下:
initComponent : function() {
this.style = "";
this.store = Ext.create('Ext.data.TreeStore', {
root : {
text : '系统菜单',
leaf : false,
expanded : true,
children : [{
text :'系统管理',
leaf : false,
expanded : true,
children:[
{ text : '用户管理' , leaf : true },
{ text : '组织管理' , leaf : true },
]
}]
}
});
this.callParent(arguments);
}
注:此处数据全部是静态数据,后面会修改为后台动态数据。
3.运行结果如下图: