vue-pro/yudao-ui-app/store/getters.js

8 lines
229 B
JavaScript
Raw Normal View History

2022-11-23 00:21:41 +08:00
const getters = {
accessToken: state => state.user.accessToken,
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