feat(ui): remove in-app entity switcher, entity fixed at login

- MainLayout/ReportCenter: drop switch-entity switcher, keep read-only entity tag
- KPIList/PredictDashboard/GrowthQuality: entity selectors locked to session entity
- api/index.ts: drop switchEntity/myEntities wrappers (endpoint kept for compat)
- sidebar brand now shows logged-in entity name

(cma-remove-inapp-entity-switcher-20260914)
This commit is contained in:
Hermes CI Fix
2026-09-14 10:15:23 +08:00
parent 53c642b644
commit 1b73dbb272
6 changed files with 38 additions and 186 deletions
-2
View File
@@ -38,8 +38,6 @@ api.interceptors.response.use(
export const authApi = {
login: (data: any) => api.post('/auth/login', data),
register: (data: any) => api.post('/auth/register', data),
switchEntity: (data: any) => api.post('/auth/switch-entity', data),
myEntities: () => api.get('/auth/my-entities'),
loginEntities: (username: string) => api.get('/auth/login-entities', { params: { username } }),
}