Skip to content

Commit 31e5f94

Browse files
committed
update 1
1 parent 22f9f2b commit 31e5f94

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

src/Text2Sql.Net.Web/Pages/DatabaseConnection/Create.razor

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
if (success)
140140
{
141141
await MessageService.Success("保存成功");
142-
NavigateToList(_model.Id);
142+
NavigateToDetail(_model.Id);
143143
}
144144
else
145145
{
@@ -161,8 +161,13 @@
161161
MessageService.Error("表单验证失败,请检查输入");
162162
}
163163

164-
private void NavigateToList(string id)
164+
private void NavigateToDetail(string id)
165165
{
166166
NavigationManager.NavigateTo("/database-connection/details/"+id);
167167
}
168+
169+
private void NavigateToList()
170+
{
171+
NavigationManager.NavigateTo("/database-connection");
172+
}
168173
}

src/Text2Sql.Net.Web/Pages/DatabaseConnection/Index.razor

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
<style>
7070
.search-container {
7171
text-align: center;
72-
margin-bottom: 24px;
7372
}
7473
7574
.card-list-container {
@@ -85,7 +84,6 @@
8584
height: 100%;
8685
display: flex;
8786
flex-direction: column;
88-
margin-bottom: 24px;
8987
overflow: hidden;
9088
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
9189
}

src/Text2Sql.Net.Web/Pages/Index.razor

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
<Button Type="primary" Size="large" OnClick="GotoDataBase">
1818
<Icon Type="database" /> 开始配置数据库
1919
</Button>
20-
21-
<Button Type="default" Size="large" OnClick="GotoDocs">
22-
<Icon Type="read" /> 查看文档
23-
</Button>
2420
</div>
2521

2622
<div class="contact-info">
@@ -131,10 +127,6 @@
131127
</style>
132128

133129
@code {
134-
private void GotoDocs()
135-
{
136-
NavigationManager.NavigateTo("/docs");
137-
}
138130

139131
private void GotoDataBase()
140132
{

0 commit comments

Comments
 (0)