mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 04:40:37 +00:00
no msg
This commit is contained in:
parent
b9b45e8e4f
commit
ab24af6e79
@ -436,9 +436,9 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
'$route': {
|
'$route': {
|
||||||
handler (route) {
|
handler (route) {
|
||||||
if ($A.isJson(window.__sendDialogMsg) && window.__sendDialogMsg.time > $A.Time()) {
|
if (this.$store.state.dialogMsgTransfer.time > $A.Time()) {
|
||||||
const {msgFile, msgRecord, msgText} = window.__sendDialogMsg;
|
this.$store.state.dialogMsgTransfer.time = 0;
|
||||||
window.__sendDialogMsg = null;
|
const {msgFile, msgRecord, msgText} = this.$store.state.dialogMsgTransfer;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if ($A.isArray(msgFile) && msgFile.length > 0) {
|
if ($A.isArray(msgFile) && msgFile.length > 0) {
|
||||||
this.sendFileMsg(msgFile);
|
this.sendFileMsg(msgFile);
|
||||||
|
|||||||
@ -1107,7 +1107,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.windowMax768) {
|
if (this.windowMax768) {
|
||||||
window.__sendDialogMsg = {
|
this.$store.state.dialogMsgTransfer = {
|
||||||
time: $A.Time() + 10,
|
time: $A.Time() + 10,
|
||||||
msgText: this.msgText,
|
msgText: this.msgText,
|
||||||
msgFile: this.msgFile,
|
msgFile: this.msgFile,
|
||||||
|
|||||||
1
resources/assets/js/store/state.js
vendored
1
resources/assets/js/store/state.js
vendored
@ -66,6 +66,7 @@ const stateData = {
|
|||||||
|
|
||||||
// 会话聊天
|
// 会话聊天
|
||||||
dialogMsgs: [],
|
dialogMsgs: [],
|
||||||
|
dialogMsgTransfer: {time: 0},
|
||||||
dialogInputCache: $A.getStorageArray("cacheDialogInput"),
|
dialogInputCache: $A.getStorageArray("cacheDialogInput"),
|
||||||
|
|
||||||
// 文件
|
// 文件
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user