From ce0d7787702d17cec99be32538b93bed9e9cc8a9 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 15 Sep 2020 08:30:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8A=82=E7=82=B9ajax?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=90=8E=E9=94=99=E8=AF=AF=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 2d24d04fb847eaa3d88ae3b3dcfa910af809702f Former-commit-id: 8e6c276331615e6f4d60dc4b1a66bdf3b358ce9e --- .../IoT.Shared/Areas/Admin/Controlls/NodeController.cs | 8 +++----- projects/WebMVC/wwwroot/components/shared/layout.html | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/projects/IoT.Shared/Areas/Admin/Controlls/NodeController.cs b/projects/IoT.Shared/Areas/Admin/Controlls/NodeController.cs index baa4ff38..651c59b7 100644 --- a/projects/IoT.Shared/Areas/Admin/Controlls/NodeController.cs +++ b/projects/IoT.Shared/Areas/Admin/Controlls/NodeController.cs @@ -1,15 +1,13 @@ -using Application.Domain.Entities; +using Application.Domain.Entities; using Application.Models; using Infrastructure.Application; using Infrastructure.Data; using Infrastructure.Extensions; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; namespace IoT.Shared.Areas.Admin.Controlls { @@ -54,10 +52,10 @@ namespace IoT.Shared.Areas.Admin.Controlls catch (Exception ex) { ex.PrintStack(); - return RedirectTo(rawMesage: ex.Message); + return Error(ex.Message); } } - return RedirectTo(); + return Success(); } else { diff --git a/projects/WebMVC/wwwroot/components/shared/layout.html b/projects/WebMVC/wwwroot/components/shared/layout.html index fbc1e77a..27277ce1 100644 --- a/projects/WebMVC/wwwroot/components/shared/layout.html +++ b/projects/WebMVC/wwwroot/components/shared/layout.html @@ -31,7 +31,7 @@