10
This commit is contained in:
@@ -6,7 +6,7 @@ const state = {
|
||||
};
|
||||
|
||||
const mutations = {
|
||||
SET_LIST(state, info) {
|
||||
SET_LIST(state, list) {
|
||||
state.list = [...list];
|
||||
},
|
||||
SET_UNREAD_COUNT(state, count) {
|
||||
@@ -35,7 +35,8 @@ const actions = {
|
||||
uni.$u.http.get('/friendcircle/list',params).then(res=>{
|
||||
commit("SET_LIST", res.data);
|
||||
}).catch(e=>{
|
||||
uni.$u.toast("获取个人信息失败");
|
||||
console.log(e);
|
||||
uni.$u.toast("获取信息失败");
|
||||
})
|
||||
},
|
||||
async getFriendCircleInfo({ commit, state}) {
|
||||
@@ -44,7 +45,7 @@ const actions = {
|
||||
commit("SET_LAST_UNREAD", data.last_unread_item);
|
||||
commit("SET_SETTINGS", data.settings);
|
||||
}).catch(e=>{
|
||||
uni.$u.toast("获取个人信息失败");
|
||||
uni.$u.toast("获取信息失败");
|
||||
})
|
||||
},
|
||||
async updateUnreadCount({commit,state},v) {
|
||||
|
||||
Reference in New Issue
Block a user