feat(web): 支持生成电视端临时登录码

- 新增创建临时登录密码的 API 请求
- 新增电视端临时登录密码弹窗组件并在用户菜单中提供入口
- 在个人资料页面添加电视临时登录码生成与倒计时展示
This commit is contained in:
truewhile
2026-09-06 23:22:34 +08:00
parent 28aa466107
commit 2e636ce43f
4 changed files with 333 additions and 8 deletions
+3
View File
@@ -19,4 +19,7 @@ export const authAPI = {
api
.post('/me/password', { old_password: oldPassword, new_password: newPassword })
.then((r) => r.data),
createTemporaryPassword: () =>
api.post<{ code: string; expires_in: number }>('/me/temporary-password').then((r) => r.data),
}