第一次提交
This commit is contained in:
37
store/modules/notice.js
Executable file
37
store/modules/notice.js
Executable file
@@ -0,0 +1,37 @@
|
||||
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
|
||||
Reference in New Issue
Block a user