From 54a0d5a24ecd1d42f01e8ffdc6368fd3547d765b Mon Sep 17 00:00:00 2001 From: Argo-Surface Date: Mon, 25 Feb 2019 15:53:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E6=9C=AA?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=B3=BB=E7=BB=9F=E6=97=B6=E5=AF=BC=E8=88=AA=E5=88=B0?= =?UTF-8?q?Home/Error/403=E9=A1=B5=E9=9D=A2=E5=90=8E=E5=81=9C=E7=95=99=20#?= =?UTF-8?q?IRZ3G?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Controllers/HomeController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Controllers/HomeController.cs b/Bootstrap.Admin/Controllers/HomeController.cs index 5a451646..03e33aaa 100644 --- a/Bootstrap.Admin/Controllers/HomeController.cs +++ b/Bootstrap.Admin/Controllers/HomeController.cs @@ -44,10 +44,11 @@ namespace Bootstrap.Admin.Controllers model.Content = "请求资源未找到"; model.Image = "404_icon.png"; } - else if(id == 403) + else if (id == 403) { model.Title = "拒绝响应"; model.Content = "请求资源的访问被服务器拒绝"; + model.ReturnUrl = Url.Content("~/Admin/Index"); } return View(model); }