feat(auth): clear tenant-scoped client state on tenant change

Implemented a new function to clear tenant-specific data from localStorage when a user switches tenants. This prevents issues with stale data being used in the new tenant context, which could lead to backend errors. The function is called during the tenant selection process to ensure a clean state for the new tenant.

Refs: #1303
This commit is contained in:
wizardchen
2026-05-17 00:29:48 +08:00
committed by lyingbug
parent 3693f977ab
commit df74fa239b
3 changed files with 926 additions and 1318 deletions
File diff suppressed because it is too large Load Diff