mirror of
https://github.com/AIDotNet/AntSK.git
synced 2026-02-17 22:10:14 +08:00
add 新增应用详情页面
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
@namespace AntSK.Pages
|
||||
@namespace AntSK.Pages.AppPage
|
||||
@using AntSK.Domain.Repositories
|
||||
@using AntSK.Models
|
||||
@page "/App/Add"
|
||||
@@ -4,7 +4,7 @@ using AntSK.Domain.Repositories;
|
||||
using AntSK.Models;
|
||||
using System.IO;
|
||||
|
||||
namespace AntSK.Pages
|
||||
namespace AntSK.Pages.AppPage
|
||||
{
|
||||
public partial class AddApp
|
||||
{
|
||||
@@ -51,7 +51,7 @@ namespace AntSK.Pages
|
||||
|
||||
apps_Repositories.Insert(_appModel);
|
||||
|
||||
NavigationManager.NavigateTo("/applist");
|
||||
NavigationManager.NavigateTo($"/app/detail/{_appModel.Id}");
|
||||
|
||||
}
|
||||
}
|
||||
11
AntSK/Pages/AppPage/AppDetail.razor
Normal file
11
AntSK/Pages/AppPage/AppDetail.razor
Normal file
@@ -0,0 +1,11 @@
|
||||
@namespace AntSK.Pages.AppPage
|
||||
@using AntSK.Domain.Repositories
|
||||
@using System.ComponentModel.DataAnnotations
|
||||
@page "/App/Detail/{AppID}"
|
||||
@inject NavigationManager NavigationManager
|
||||
|
||||
<h3>AppDetail</h3>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
||||
10
AntSK/Pages/AppPage/AppDetail.razor.cs
Normal file
10
AntSK/Pages/AppPage/AppDetail.razor.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace AntSK.Pages.AppPage
|
||||
{
|
||||
public partial class AppDetail
|
||||
{
|
||||
[Parameter]
|
||||
public string AppId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user