mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-24 08:11:55 +08:00
7 lines
179 B
JavaScript
7 lines
179 B
JavaScript
const getters = {
|
|
accessToken: state => state.user.accessToken,
|
|
userInfo: state => state.user.userInfo,
|
|
hasLogin: state => !!state.user.accessToken
|
|
}
|
|
export default getters
|