修复登录退出接口路径

This commit is contained in:
whyour
2021-12-21 23:42:05 +08:00
parent 46aaeb4eac
commit 03c9f79549
5 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export default function (props: any) {
const [collapsed, setCollapsed] = useState(false);
const logout = () => {
request.post(`${config.apiPrefix}logout`).then(() => {
request.post(`${config.apiPrefix}user/logout`).then(() => {
localStorage.removeItem(config.authKey);
history.push('/login');
});