添加页面
This commit is contained in:
24
Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogEdit.razor
Normal file
24
Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogEdit.razor
Normal file
@@ -0,0 +1,24 @@
|
||||
@page "/content/blog/create"
|
||||
@page "/content/blog/edit/{id:long}"
|
||||
@page "/{locale}/content/blog/create"
|
||||
@page "/{locale}/content/blog/edit/{id:long}"
|
||||
|
||||
<PageContainer Title="@(Id > 0 ? "编辑博客文章" : "新增博客文章")">
|
||||
<Breadcrumb>
|
||||
<Breadcrumb>
|
||||
<BreadcrumbItem Href="/">管理后台</BreadcrumbItem>
|
||||
<BreadcrumbItem Href="/content/page/list">内容管理</BreadcrumbItem>
|
||||
<BreadcrumbItem>博客文章</BreadcrumbItem>
|
||||
</Breadcrumb>
|
||||
</Breadcrumb>
|
||||
<ChildContent>
|
||||
<h3>Tools</h3>
|
||||
</ChildContent>
|
||||
</PageContainer>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public string Locale { get; set; } = string.Empty;
|
||||
[Parameter]
|
||||
public long? Id { get; set; }
|
||||
}
|
||||
20
Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogList.razor
Normal file
20
Atomx.Admin/Atomx.Admin.Client/Pages/Contents/BlogList.razor
Normal file
@@ -0,0 +1,20 @@
|
||||
@page "/content/blog/list"
|
||||
@page "/{locale}/content/blog/list"
|
||||
|
||||
<PageContainer Title="博客文章">
|
||||
<Breadcrumb>
|
||||
<Breadcrumb>
|
||||
<BreadcrumbItem Href="/">管理后台</BreadcrumbItem>
|
||||
<BreadcrumbItem Href="/content/page/list">内容管理</BreadcrumbItem>
|
||||
<BreadcrumbItem>博客文章</BreadcrumbItem>
|
||||
</Breadcrumb>
|
||||
</Breadcrumb>
|
||||
<ChildContent>
|
||||
<h3>Tools</h3>
|
||||
</ChildContent>
|
||||
</PageContainer>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public string Locale { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -1,5 +1,24 @@
|
||||
<h3>PageEdit</h3>
|
||||
@page "/content/page/create"
|
||||
@page "/content/page/edit/{id:long}"
|
||||
@page "/{locale}/content/page/create"
|
||||
@page "/{locale}/content/page/edit/{id:long}"
|
||||
|
||||
<PageContainer Title="@(Id > 0 ? "编辑主题页面" : "新增主题页面")">
|
||||
<Breadcrumb>
|
||||
<Breadcrumb>
|
||||
<BreadcrumbItem Href="/">管理后台</BreadcrumbItem>
|
||||
<BreadcrumbItem Href="/content/page/list">内容管理</BreadcrumbItem>
|
||||
<BreadcrumbItem>主题页面</BreadcrumbItem>
|
||||
</Breadcrumb>
|
||||
</Breadcrumb>
|
||||
<ChildContent>
|
||||
<h3>Tools</h3>
|
||||
</ChildContent>
|
||||
</PageContainer>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
||||
[Parameter]
|
||||
public string Locale { get; set; } = string.Empty;
|
||||
[Parameter]
|
||||
public long? Id { get; set; }
|
||||
}
|
||||
@@ -1,8 +1,20 @@
|
||||
@page "/content/page/list"
|
||||
@page "/{locale}/content/page/list"
|
||||
|
||||
|
||||
<h3>PageList</h3>
|
||||
<PageContainer Title="主题页面">
|
||||
<Breadcrumb>
|
||||
<Breadcrumb>
|
||||
<BreadcrumbItem Href="/">管理后台</BreadcrumbItem>
|
||||
<BreadcrumbItem Href="/content/page/list">内容管理</BreadcrumbItem>
|
||||
<BreadcrumbItem>主题页面</BreadcrumbItem>
|
||||
</Breadcrumb>
|
||||
</Breadcrumb>
|
||||
<ChildContent>
|
||||
<h3>Tools</h3>
|
||||
</ChildContent>
|
||||
</PageContainer>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
||||
[Parameter]
|
||||
public string Locale { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user