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