mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-14 04:13:41 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user