actions.js
435 Bytes
export default {
async followUser(actions, {followUid, status}) {
const result = await this.$api.get('/api/grass/updateAttention', {
followUid,
status,
attentionType: 1
});
return result;
},
async followTopic(actions, {topicId, status}) {
const result = await this.$api.get('/api/grass/updateAttention', {
topicId,
status,
attentionType: 0
});
return result;
},
};