forked from wangziqi/gongxue-base
feat(admin): remove all department/campus scoping from frontend
- Delete CampusSwitcher component and useCampus hook - Delete Departments page and its route - Remove campus header interceptor from API client - Remove departmentId from Class interfaces - Remove campusLocation from student profile - Remove department permissions from test fixtures - Remove currentCampusId from test cleanup TypeScript compiles clean.
This commit is contained in:
@@ -10,10 +10,6 @@ instance.interceptors.request.use((config) => {
|
||||
if (token) {
|
||||
config.headers.Authorization = `Bearer ${token}`;
|
||||
}
|
||||
const campusId = localStorage.getItem('currentCampusId');
|
||||
if (campusId) {
|
||||
config.headers['X-Campus-Id'] = campusId;
|
||||
}
|
||||
return config;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user