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 {
//
const tempId = $A.randNum(1000000000, 9999999999);
const tempId = $A.randNum(1000000000, 9999999999)
const typeLoad = $A.stringLength(msgText) > 2000
const tempMsg = {
id: tempId,
dialog_id: this.dialogData.id,
reply_id: this.replyId,
reply_data: this.replyItem,
type: 'text',
type: typeLoad ? 'loading' : 'text',
userid: this.userId,
msg: {
text: $A.stringLength(msgText) > 2000 ? '' : msgText,
text: typeLoad ? '' : msgText,
},
};
if (msgText.length > 2000) {
tempMsg.type = 'loading';
tempMsg.msg = { };
}
this.tempMsgs.push(tempMsg)
this.msgType = ''

View File

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

View File

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