XuqmGroup-Web/tenant-platform
XuqmGroup 7d100a9efc fix(auth): use auth.logout() instead of localStorage.removeItem in interceptors
When a 401/expired-token fires in client.ts or file.ts, the handlers were
clearing localStorage but not the Pinia auth.token ref. The route guard
reads Pinia, so router.push('/login') was immediately bounced back to
/dashboard, leaving the user in a ghost-authenticated state where all API
calls failed with 401.

Calling auth.logout() clears both Pinia state and localStorage atomically,
so the route guard correctly allows the redirect to /login.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 14:12:03 +08:00
..
src fix(auth): use auth.logout() instead of localStorage.removeItem in interceptors 2026-05-18 14:12:03 +08:00
auto-imports.d.ts feat: support single-domain web deployment docs 2026-04-24 10:42:11 +08:00
components.d.ts feat: add quick service entry portal with in-page app switcher 2026-05-07 13:53:02 +08:00
index.html chore: initial commit 2026-04-21 22:07:29 +08:00
package.json feat(tenant-platform): service activation realtime + store review retry 2026-05-16 14:27:02 +08:00
tsconfig.app.json feat: support single-domain web deployment docs 2026-04-24 10:42:11 +08:00
tsconfig.json chore: initial commit 2026-04-21 22:07:29 +08:00
tsconfig.node.json feat: support single-domain web deployment docs 2026-04-24 10:42:11 +08:00
vite.config.d.ts feat: support single-domain web deployment docs 2026-04-24 10:42:11 +08:00
vite.config.ts 一大波改动 2026-05-15 22:11:03 +08:00