后台登陆验证码

This commit is contained in:
yml
2026-05-22 17:20:47 +08:00
parent 6edee641fb
commit 7df557d668
12 changed files with 218 additions and 20 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ export const useAdminSessionStore = defineStore('adminSession', {
nickname: '',
}),
actions: {
async login(username: string, password: string) {
const result = await loginAdmin(username, password)
async login(username: string, password: string, captchaId: string, captchaCode: string) {
const result = await loginAdmin(username, password, captchaId, captchaCode)
this.applySession(result.admin, result.tokens.access_token, result.tokens.refresh_token)
return result
},