I have an app written in React and Ant Design pro. I have a logout method:
logout() { removeToken(); if (window.location.pathname !== \'/user/login\' &&