登录页面init

This commit is contained in:
2024-08-19 14:01:14 +08:00
parent 74bd16dc51
commit 41babdfa5c
22 changed files with 244 additions and 139 deletions

View File

@@ -0,0 +1,9 @@
import { useUserInfoStore } from '@/stores/user'
import { USER_INFO } from '@/constants/storeKey'
export function clearUserInfo() {
const userInfo = useUserInfoStore()
userInfo.$reset()
// 清除用户信息缓存
localStorage.removeItem(USER_INFO)
}