Release/test 合并上生产 #2

Merged
admin merged 736 commits from release/test into main 2026-09-17 11:50:56 +08:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 440cae9c6d - Show all commits
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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')