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 },
name: 'MessageHub',
props: {},
mounted() {
// this.fetchConversations()
},
// watch: {
// conversations: {
// handler: function (val) {
// if (val && val.length > 0) {
// this.current_thread = val[0]
// this.clearUnreadMessageBy(val[0])
// }
// },
// deep: false
// }
// },
mounted() {},
data() {
return {
userIdentityNote: this.mnx_getUserIdentity(),
// conversations: [],
selConversation: null,
messages: [],
writtenMessage: null
@ -126,19 +112,6 @@ export default {
}
},
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) {
const jwt = userUtils.getJwtToken()
MessageHubApi.fetchMessages(

View File

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