From 2493c3929bcf6a30cd7e02170c73771bee2bd5b0 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Mon, 27 Apr 2020 17:01:12 +0800 Subject: [PATCH] 1.0.0.427 Former-commit-id: 41ce293b562498f2835ab8b16ae54d80ffafb9a1 --- projects/Infrastructure/Infrastructure.csproj | 2 +- .../Infrastructure/Views/Shared/_Paged.cshtml | 5 ++-- projects/IoT.Shared/IoT.Shared.csproj | 2 +- projects/IoTCenter/IoTCenter.csproj | 2 +- .../IoTCenter/Views/Shared/_Layout.cshtml | 30 +++++++++---------- projects/IoTNode/DbConfig.cs | 4 +-- projects/IoTNode/IoTNode.csproj | 2 +- projects/JobServer/JobServer.csproj | 2 +- projects/StudyCenter/StudyCenter.csproj | 2 +- projects/UserCenter/UserCenter.csproj | 2 +- projects/WebMVC/WebMVC.csproj | 2 +- projects/WebSPA/WebSPA.csproj | 2 +- tools/nginx-1.16.0/conf/nginx.conf | 9 ++++++ 13 files changed, 38 insertions(+), 28 deletions(-) diff --git a/projects/Infrastructure/Infrastructure.csproj b/projects/Infrastructure/Infrastructure.csproj index b86eb0b3..ccfc2b87 100644 --- a/projects/Infrastructure/Infrastructure.csproj +++ b/projects/Infrastructure/Infrastructure.csproj @@ -5,7 +5,7 @@ true true true - 1.0.0-beta.422 + 1.0.0.427 diff --git a/projects/Infrastructure/Views/Shared/_Paged.cshtml b/projects/Infrastructure/Views/Shared/_Paged.cshtml index f694bb74..23e7d03a 100644 --- a/projects/Infrastructure/Views/Shared/_Paged.cshtml +++ b/projects/Infrastructure/Views/Shared/_Paged.cshtml @@ -1,9 +1,10 @@ @model Infrastructure.Application.IPagedList @{ var links = Model.GetPageIndexs(); - var url = this.Context.Request.GetUrl(); + var url = Url.Content("~") + this.Context.Request.Path + this.Context.Request.QueryString; var pageIndexParam = "PageIndex"; var firstUrl = url.RemoveParam("PageIndex"); + var prevUrl = Model.PageIndex - 1 == 1 ? firstUrl : url.SetParam(pageIndexParam, Model.PageIndex - 1);