feat(admin): 修改密码页 + 首次登录强制改密;自绘标题栏与管理面板 Electron 窗口

This commit is contained in:
AskaEth committed 2026-09-09 19:30:59 +08:00
1 parent 4cbf5a74f0
commit ab2f4d1cec
11 files changed
+197 -8

No files matched your search

+8
View File
@@ -154,6 +154,14 @@ export const adminApi = {
},
),
changePassword: (currentPassword: string, newPassword: string): Promise<{ relogin: boolean }> =>
call(
() => client.auth.changePassword(currentPassword, newPassword),
() => {
throw new ApiError('INTERNAL', '示例数据模式下无法修改密码', 0)
},
),
health: (): Promise<HealthInfo> =>
call(
() => client.health(),
+1
View File
@@ -715,6 +715,7 @@ class MockDb {
username,
displayName: username === '' ? '示例用户' : username,
role: 'admin',
mustChangePassword: false,
lastLoginAt: null,
}
}