This commit is contained in:
min.jiang 2024-07-04 12:57:33 +08:00
parent 57f5bffac6
commit 94d72e753e
2 changed files with 1 additions and 32 deletions

View File

@ -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(

View File

@ -12,10 +12,6 @@
</template> </template>
<script> <script>
import {
UserProfileApi
// userProfileValidator,
} from '@/utils/index'
export default { export default {
name: 'ProposalSubmitted', name: 'ProposalSubmitted',
props: { props: {