fix: fix some issues with berry (#913)

* fix: login address error

* fix: Normal users display profile menu

* fix: remove redundant code
This commit is contained in:
Buer
2024-01-07 18:39:15 +08:00
committed by GitHub
parent c9ebcab8b8
commit 37afb313b5
3 changed files with 2 additions and 69 deletions

View File

@@ -14,7 +14,7 @@ API.interceptors.response.use(
if (error.response?.status === 401) {
localStorage.removeItem('user');
store.dispatch({ type: LOGIN, payload: null });
window.location.href = config.basename + '/login';
window.location.href = config.basename + 'login';
}
if (error.response?.data?.message) {