mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-30 03:36:37 +08:00
feat(web): 支持生成电视端临时登录码
- 新增创建临时登录密码的 API 请求 - 新增电视端临时登录密码弹窗组件并在用户菜单中提供入口 - 在个人资料页面添加电视临时登录码生成与倒计时展示
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user