fix: 修改批量删除会话方式

- 从逐条单个删除改为官方的批量删除接口
- 单个删除函数保留备用
This commit is contained in:
latticeon
2026-03-16 16:23:39 +08:00
parent dfea092583
commit f6296d506f
11 changed files with 46 additions and 127 deletions

View File

@@ -196,7 +196,7 @@ export function useAccountActions({ apiFetch, t, onMessage, onRefresh, config, f
const data = await res.json()
if (data.success) {
onMessage('success', t('accountManager.deleteAllSessionsSuccess', { count: data.deleted }))
onMessage('success', t('accountManager.deleteAllSessionsSuccess'))
// 清除会话数显示
setSessionCounts(prev => {
const newCounts = { ...prev }