后台跳转到登录页嵌套在iframe的问题(MVC例)

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

 

相关文章
|
监控 前端开发 容器
基于Vue+Spring MVC+MyBatis+Shiro+Dubbo开发的分布式后台管理系统
本文项目代码: 服务端:https://github.com/lining90567/dubbo-demo-server 前端:https://github.com/lining90567/dubbo-demo-client 最近项目中使用了shiro做权限管理,在开发过程中也踩了一些坑,于是便有了开发个应用巩固一下所学知识的想法,正好在开发的过程里学习一下Vue开发。
2744 0