mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-19 22:53:41 +08:00
fix: login address error
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