Skip to content

Commit 5180548

Browse files
committed
升级部署2.0
1 parent ed81850 commit 5180548

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

MessageBoard/MessageBoard/Controllers/HomeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public async Task<IActionResult> Index(int page, int cont)
2424

2525
public async Task<List<Message>> GetData(int page, int cont)
2626
{
27-
cont = cont == 0 ? 30 : cont;
27+
cont = cont == 0 || cont > 30 ? 30 : cont;
2828

2929
var messgs = await _db.Messages.OrderByDescending(t => t.CreateTime).Skip(page).Take(cont).AsNoTracking().ToListAsync();
3030
return messgs;

MessageBoard/MessageBoard/Views/Home/Index.cshtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
display: none;
3030
}
3131
/*PC*/
32-
@@media (min-width: 992px) {
32+
@@media (min-width: 1025px) {
3333
.divContent {
3434
margin: 10px auto;
3535
margin-top: 55px;
@@ -79,7 +79,7 @@
7979
<div style="color:red;font-size:23px;font-weight:700;">
8080
Hi-Blogs,ASP.NET Core 正式启动。只为技术而技术!!!
8181
</div>
82-
<div style="padding-top: 7px;color: #A7A2A2;">将采用 阿里云 + .NET Core1.1 + CentOS7.3 + MySql5.6.37 + nginx1.12.1</div>
82+
<div style="padding-top: 7px;color: #A7A2A2;">将采用 阿里云 + .NET Core2.0 + CentOS7.3 + MySql5.6.37 + nginx1.12.1</div>
8383

8484
<div style="margin-top:30px">
8585
<div class="pc">
@@ -154,6 +154,7 @@
154154
};
155155
156156
$(".btnSave").click(function () {
157+
$(".btnSave").prop("disabled", true);
157158
$.ajax({
158159
url: "/Home/RecordMessges",
159160
type: "post",

0 commit comments

Comments
 (0)