fix store

This commit is contained in:
jxxghp
2023-06-25 16:57:20 +08:00
parent 6d1d3091b4
commit 3ae5cf6b3f
5 changed files with 62 additions and 52 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const store = useStore();
// 执行注销操作
const logout = () => {
// 清除登录状态信息
store.dispatch('clearToken');
store.dispatch('auth/clearToken');
// 重定向到登录页面或其他适当的页面
router.push('/login')