Release/test 合并上生产 #2
@@ -176,7 +176,7 @@ export const useAuthStore = defineStore('admin-auth', () => {
|
||||
try {
|
||||
const response = await http.post<ApiEnvelope<LoginResponse>, ApiEnvelope<LoginResponse>>(
|
||||
'/auth/login',
|
||||
{ username: account, password },
|
||||
{ loginId: account, password },
|
||||
)
|
||||
const result = unwrapApiResponse<LoginResponse>(response)
|
||||
await applySession(result, expectedGeneration)
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('API error diagnostics', () => {
|
||||
}
|
||||
}
|
||||
|
||||
await http.post('/auth/login', { username: 'operator', password: 'secret' })
|
||||
await http.post('/auth/login', { loginId: 'operator', password: 'secret' })
|
||||
|
||||
expect(authorization).toBeUndefined()
|
||||
localStorage.removeItem('cc-admin-token')
|
||||
|
||||
Reference in New Issue
Block a user