diff --git a/src/TelegramPanel.Web/Components/Layout/MainLayout.razor b/src/TelegramPanel.Web/Components/Layout/MainLayout.razor
index 8510af5..4182808 100644
--- a/src/TelegramPanel.Web/Components/Layout/MainLayout.razor
+++ b/src/TelegramPanel.Web/Components/Layout/MainLayout.razor
@@ -10,6 +10,10 @@
Telegram Panel
+
-
- 系统设置
-
-
模块管理
-
- API 管理
-
-
-
- 修改密码
-
-
-
- 退出登录
-
-
@if (Contributions.NavItems.Count > 0 || Contributions.Pages.Count > 0)
{
@@ -76,4 +60,12 @@
}
}
+
+
+ API 管理
+
+
+
+ 退出登录
+
diff --git a/src/TelegramPanel.Web/Components/Pages/Settings.razor b/src/TelegramPanel.Web/Components/Pages/Settings.razor
index cb0d785..ce07348 100644
--- a/src/TelegramPanel.Web/Components/Pages/Settings.razor
+++ b/src/TelegramPanel.Web/Components/Pages/Settings.razor
@@ -11,6 +11,7 @@
@inject IDialogService DialogService
@inject IWebHostEnvironment Environment
@inject PanelTimeZoneService TimeZone
+@inject NavigationManager Navigation
@using TelegramPanel.Web.Services
系统设置 - Telegram Panel
@@ -126,6 +127,23 @@
+
+
+ 安全
+
+
+
+ 修改后台登录密码。
+
+
+
+
+ 修改密码
+
+
+
+
日志设置
@@ -305,6 +323,12 @@
}
}
+ private Task OpenChangePassword()
+ {
+ Navigation.NavigateTo("/admin/password");
+ return Task.CompletedTask;
+ }
+
private async Task LoadOrCreateLocalConfigAsync()
{
var path = LocalConfigPath;