1234567891011121314151617 |
- export default function({store, app: {$axios}}) {
- if(store?.state?.token !== '') {
- $axios.get('members/getMemberInfo').then((res)=> {
- if(res.code === 200) {
- store.commit('setUser',res.result)
- localStorage.setItem('userInfo',JSON.stringify(res.result))
- }
- })
- }
- }
|