//首页public ActionResult Index() { if (!Request.IsAuthenticated) //判断权限,没有登录就跳回登录页 {string url = Url.Action("Index", "Start", new { area=""}); Response.Write("parent.window.location.href('" + url + "');"); } return View(); }
时间: 2024-10-08 20:16:46
//首页public ActionResult Index() { if (!Request.IsAuthenticated) //判断权限,没有登录就跳回登录页 {string url = Url.Action("Index", "Start", new { area=""}); Response.Write("parent.window.location.href('" + url + "');"); } return View(); }