pinina数据持久化

This commit is contained in:
zoujiandong
2023-07-19 17:50:13 +08:00
parent df6f3a3b2c
commit 75a18cf3ed
12 changed files with 265 additions and 107 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ const handleLogout = () => {
onOk:async() => {
const store = useUserStore();
await store.userLogut();
window.sessionStorage.removeItem('token');
window.localStorage.removeItem('token');
clearLocalStorage();
proxy.$router.push('/login');
},