vue-pro/yudao-ui-app/store/getters.js
chaining 7664b8a3d6
fix:修复令牌过期无法刷新令牌的bug
Signed-off-by: chaining <ning.chai@qq.com>
2023-01-09 02:59:27 +00:00

8 lines
229 B
JavaScript

const getters = {
accessToken: state => state.user.accessToken,
refreshToken: state => state.user.refreshToken,
userInfo: state => state.user.userInfo,
hasLogin: state => !!state.user.accessToken
}
export default getters