Merge PR #296: OAuth token cache invalidation on 401 and refresh

This commit is contained in:
shaw
2026-01-15 16:31:37 +08:00
17 changed files with 949 additions and 68 deletions

View File

@@ -357,9 +357,6 @@ const handleBulkToggleSchedulable = async (schedulable: boolean) => {
} else {
selIds.value = hasIds ? [] : accountIds
}
load().catch((error) => {
console.error('Failed to refresh accounts:', error)
})
} catch (error) {
console.error('Failed to bulk toggle schedulable:', error)
appStore.showError(t('common.error'))
@@ -383,9 +380,6 @@ const handleToggleSchedulable = async (a: Account) => {
try {
const updated = await adminAPI.accounts.setSchedulable(a.id, nextSchedulable)
updateSchedulableInList([a.id], updated?.schedulable ?? nextSchedulable)
load().catch((error) => {
console.error('Failed to refresh accounts:', error)
})
} catch (error) {
console.error('Failed to toggle schedulable:', error)
appStore.showError(t('admin.accounts.failedToToggleSchedulable'))