|  |  |  | 
|---|
|  |  |  | import { storageLocal } from './storage'; | 
|---|
|  |  |  | import { storageLocal } from '@12333/utils'; | 
|---|
|  |  |  | import { useUserStoreWithOut } from '@/stores/modules/user'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const StorageKey = { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export function getUserDetail() { | 
|---|
|  |  |  | return storageLocal.getItem<API.UserInfoV2>(StorageKey.USER_DETAIL_KEY); | 
|---|
|  |  |  | return storageLocal.getItem<API.GetEnterpriseLoginInfoQueryResult>(StorageKey.USER_DETAIL_KEY); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export function setUserDetail(userDetail: API.UserInfoV2) { | 
|---|
|  |  |  | export function setUserDetail(userDetail: API.GetEnterpriseLoginInfoQueryResult) { | 
|---|
|  |  |  | return storageLocal.setItem(StorageKey.USER_DETAIL_KEY, userDetail); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|