From bcddd9873837775633bcaf5fb80eff26c0a441de Mon Sep 17 00:00:00 2001 From: zhangqi <2794379662@qq.com> Date: Wed, 24 Feb 2021 16:53:27 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E8=B7=B3=E8=BD=AC=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RedirectController.cs | 2 +- QRCodeService/Views/Redirect/Index.cshtml | 29 ++++++++++--------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/QRCodeService/Controllers/RedirectController.cs b/QRCodeService/Controllers/RedirectController.cs index 9c51f21..aabac85 100644 --- a/QRCodeService/Controllers/RedirectController.cs +++ b/QRCodeService/Controllers/RedirectController.cs @@ -21,7 +21,7 @@ namespace QRCodeService.Controllers public async Task Index(string shortCode) { var link = await queries.GetLinkAsync(shortCode); - return View(new {link.FullUrl }); + return View(link); } } } diff --git a/QRCodeService/Views/Redirect/Index.cshtml b/QRCodeService/Views/Redirect/Index.cshtml index ac3d89a..1887b40 100644 --- a/QRCodeService/Views/Redirect/Index.cshtml +++ b/QRCodeService/Views/Redirect/Index.cshtml @@ -2,18 +2,19 @@ For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 *@ @{ - - - - - - -
- loading... -
- - - } +@model QRCodeService.Application.Queries.Link + + + + + + +
+ loading... +
+ + + \ No newline at end of file