Files
aishangjia-uniapp/store/modules/notice.js
2023-08-04 13:14:48 +08:00

37 lines
638 B
JavaScript
Executable File

import storage from '@/utils/storage'
import { getConversationList, sendMessage, getFriemdMessages,postMarkRead } from '@/api/chat.js'
const notice = {
state: {
// 未读喜欢我的
likeMe: 10,
// 未读我喜欢
likes: 20,
// 未读评论数
unReadComments: 30,
// 未读访客数
look: 40
},
mutations: {
SET_LIKE_ME: (state, value) => {
state.likeMe = value
},
SET_LIKES: (state, value) => {
state.likes = value
},
SET_UNREAD_COMMENTS: (state, value) => {
state.unReadComments = value
},
SET_LOOK: (state, value) => {
state.look = value
}
},
actions: {
}
}
export default notice