You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
358 B
19 lines
358 B
|
3 years ago
|
import httpRequest from '../api/httpRequest.js'
|
||
|
|
|
||
|
|
export default {
|
||
|
|
|
||
|
|
state: {
|
||
|
|
groups: [],
|
||
|
|
activeIndex: -1,
|
||
|
|
},
|
||
|
|
mutations: {
|
||
|
|
initGroupStore(state, userInfo) {
|
||
|
|
httpRequest({
|
||
|
|
url: '/api/friends/list',
|
||
|
|
method: 'get'
|
||
|
|
}).then((friendsList) => {
|
||
|
|
this.commit("setFriendsList",friendsList);
|
||
|
|
this.commit("refreshOnlineStatus");
|
||
|
|
})
|
||
|
|
},
|
||
|
|
}
|