修复登录退出接口路径

This commit is contained in:
whyour committed 2021-12-21 23:42:05 +08:00
1 parent 46aaeb4eac
commit 03c9f79549
5 files changed
+8 -4

No files matched your search

+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');
});