mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 01:01:52 +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
|