bugfix:跳转链接
This commit is contained in:
@@ -21,7 +21,7 @@ namespace QRCodeService.Controllers
|
|||||||
public async Task<IActionResult> Index(string shortCode)
|
public async Task<IActionResult> Index(string shortCode)
|
||||||
{
|
{
|
||||||
var link = await queries.GetLinkAsync(shortCode);
|
var link = await queries.GetLinkAsync(shortCode);
|
||||||
return View(new {link.FullUrl });
|
return View(link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,18 +2,19 @@
|
|||||||
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
||||||
*@
|
*@
|
||||||
@{
|
@{
|
||||||
<!DOCTYPE html>
|
}
|
||||||
<html>
|
@model QRCodeService.Application.Queries.Link
|
||||||
<head>
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
loading...
|
loading...
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
location.href="@ViewData["FullUrl"]"
|
location.href = "@Model.FullUrl"
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user