2022-11-23 00:21:41 +08:00
|
|
|
const getters = {
|
|
|
|
accessToken: state => state.user.accessToken,
|
2023-01-09 10:59:27 +08:00
|
|
|
refreshToken: state => state.user.refreshToken,
|
2022-11-23 00:21:41 +08:00
|
|
|
userInfo: state => state.user.userInfo,
|
|
|
|
hasLogin: state => !!state.user.accessToken
|
|
|
|
}
|
|
|
|
export default getters
|