mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-15 19:28:11 +00:00
no message
This commit is contained in:
parent
4844cc1ea1
commit
fcbbd2b64c
@ -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 = ''
|
||||
|
||||
@ -32,8 +32,6 @@
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
name: "FileHistory",
|
||||
props: {
|
||||
|
||||
@ -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);
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user