MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / logout

Function logout

web/src/components/layout/HeaderBar.js:132–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 ];
131
132 async function logout() {
133 await API.get('/api/user/logout');
134 showSuccess(t('注销成功!'));
135 userDispatch({ type: 'logout' });
136 localStorage.removeItem('user');
137 navigate('/login');
138 setMobileMenuOpen(false);
139 }
140
141 const handleNewYearClick = () => {
142 fireworks.init('root', {});

Callers

nothing calls this directly

Calls 2

showSuccessFunction · 0.90
tFunction · 0.50

Tested by

no test coverage detected