fix: login address error

This commit is contained in:
MartialBE 2024-01-07 18:08:57 +08:00
parent c9ebcab8b8
commit 5d7ff93ac2
No known key found for this signature in database
GPG Key ID: F5A7AC860020C896

View File

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