update
This commit is contained in:
parent
57f5bffac6
commit
94d72e753e
@ -83,24 +83,10 @@ export default {
|
|||||||
components: { SvgIcon },
|
components: { SvgIcon },
|
||||||
name: 'MessageHub',
|
name: 'MessageHub',
|
||||||
props: {},
|
props: {},
|
||||||
mounted() {
|
mounted() {},
|
||||||
// this.fetchConversations()
|
|
||||||
},
|
|
||||||
// watch: {
|
|
||||||
// conversations: {
|
|
||||||
// handler: function (val) {
|
|
||||||
// if (val && val.length > 0) {
|
|
||||||
// this.current_thread = val[0]
|
|
||||||
// this.clearUnreadMessageBy(val[0])
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// deep: false
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userIdentityNote: this.mnx_getUserIdentity(),
|
userIdentityNote: this.mnx_getUserIdentity(),
|
||||||
// conversations: [],
|
|
||||||
selConversation: null,
|
selConversation: null,
|
||||||
messages: [],
|
messages: [],
|
||||||
writtenMessage: null
|
writtenMessage: null
|
||||||
@ -126,19 +112,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// fetchConversations() {
|
|
||||||
// MessageHubApi.fetchConversations(new Date('01 Jan 1970 00:00:00 GMT').toISOString())
|
|
||||||
// .then((response) => {
|
|
||||||
// const conversations = response.data.conversations || []
|
|
||||||
// this.conversations = conversations
|
|
||||||
// if (conversations.length > 0) {
|
|
||||||
// this.selectConversation(conversations[0])
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// .catch((error) => {
|
|
||||||
// this.mnx_backendErrorHandler(error)
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
fetchMessageForConversation(conversation_id) {
|
fetchMessageForConversation(conversation_id) {
|
||||||
const jwt = userUtils.getJwtToken()
|
const jwt = userUtils.getJwtToken()
|
||||||
MessageHubApi.fetchMessages(
|
MessageHubApi.fetchMessages(
|
||||||
|
|||||||
@ -12,10 +12,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
|
||||||
UserProfileApi
|
|
||||||
// userProfileValidator,
|
|
||||||
} from '@/utils/index'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ProposalSubmitted',
|
name: 'ProposalSubmitted',
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user