public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"m_default",
"m/{controller}/{action}/{id}",
//设置区域下的默认的跳转
new { Controller="Home",action = "Index", id = UrlParameter.Optional }
);
}
以上代码经过本人测试真实可用!
时间: 2024-10-20 23:48:40