no message

This commit is contained in:
kuaifan 2022-07-12 10:37:46 +08:00
parent 4844cc1ea1
commit fcbbd2b64c
3 changed files with 6 additions and 10 deletions

View File

@ -876,21 +876,18 @@ export default {
}); });
} else { } else {
// //
const tempId = $A.randNum(1000000000, 9999999999); const tempId = $A.randNum(1000000000, 9999999999)
const typeLoad = $A.stringLength(msgText) > 2000
const tempMsg = { const tempMsg = {
id: tempId, id: tempId,
dialog_id: this.dialogData.id, dialog_id: this.dialogData.id,
reply_id: this.replyId, reply_id: this.replyId,
reply_data: this.replyItem, reply_data: this.replyItem,
type: 'text', type: typeLoad ? 'loading' : 'text',
userid: this.userId, userid: this.userId,
msg: { msg: {
text: $A.stringLength(msgText) > 2000 ? '' : msgText, text: typeLoad ? '' : msgText,
}, },
};
if (msgText.length > 2000) {
tempMsg.type = 'loading';
tempMsg.msg = { };
} }
this.tempMsgs.push(tempMsg) this.tempMsgs.push(tempMsg)
this.msgType = '' this.msgType = ''

View File

@ -32,8 +32,6 @@
} }
</style> </style>
<script> <script>
import {mapState} from "vuex";
export default { export default {
name: "FileHistory", name: "FileHistory",
props: { props: {

View File

@ -485,10 +485,11 @@ export default {
} }
this.$set(user, 'loading', true); this.$set(user, 'loading', true);
this.$store.dispatch("openDialogUserid", user.userid).then(_ => { this.$store.dispatch("openDialogUserid", user.userid).then(_ => {
this.$set(user, 'loading', false);
if (this.windowLarge) { if (this.windowLarge) {
this.tabActive = 'dialog'; this.tabActive = 'dialog';
} }
}).finally(_ => {
this.$set(user, 'loading', false);
}); });
}, },