Bootstrap后台管理系统模板 设置起始页
最近使用了一款bootstrap的模板,进入的起始页显示空白,这时候只要添加一个属性
homePage:' ', ' '中添加主页指向的页面的id就可以了,如下,重新打开页面,首页成功跳转到
'personal/information' 指向的页面中!
<script>
BUI.use('common/main',function(){
var config = [{
id:'1',
homePage :'2',
menu:[{
text:'系统管理',
items:[{id:'2',text:'个人管理',href:'personal/information'},
{id:'3',text:'bug管理',href:'project/projects'},
{id:'4',text:'用户管理',href:'user/users'},
{id:'5',text:'权限管理',href:'role/roles'}
]}
]
},{
id:'7',
homePage : '9',
menu:[{
text:'业务管理',
items:[{id:'9',text:'查询业务',href:'Node/index.html'}]
}]
}
];
new PageUtil.MainPage({
modulesConfig : config
});
});
</script>