mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 05:12:49 +00:00
fix: 切换对话之后无法通过右键@
This commit is contained in:
parent
4c5d3bd43e
commit
a834481d32
@ -524,12 +524,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Reset lists
|
// Reset lists
|
||||||
dialogId() {
|
dialogId(id1, id2) {
|
||||||
this.userList = null;
|
this.userList = null;
|
||||||
this.userCache = null;
|
this.userCache = null;
|
||||||
this.taskList = null;
|
this.taskList = null;
|
||||||
this.fileList = {};
|
this.fileList = {};
|
||||||
this.loadInputDraft()
|
this.loadInputDraft()
|
||||||
|
inputLoadAdd(id1, this._uid)
|
||||||
|
inputLoadRemove(id2, this._uid)
|
||||||
},
|
},
|
||||||
taskId() {
|
taskId() {
|
||||||
this.userList = null;
|
this.userList = null;
|
||||||
|
|||||||
@ -5,14 +5,16 @@ import {Modal} from "view-design-hi";
|
|||||||
const inputLoadUid = {}
|
const inputLoadUid = {}
|
||||||
|
|
||||||
function inputLoadAdd(dialogId, uid) {
|
function inputLoadAdd(dialogId, uid) {
|
||||||
if (typeof inputLoadUid[dialogId] === "undefined") {
|
if (!dialogId || typeof inputLoadUid[dialogId] === "undefined") {
|
||||||
inputLoadUid[dialogId] = [];
|
inputLoadUid[dialogId] = [];
|
||||||
|
} else {
|
||||||
|
inputLoadUid[dialogId] = inputLoadUid[dialogId].filter(v => v !== uid)
|
||||||
}
|
}
|
||||||
inputLoadUid[dialogId].push(uid)
|
inputLoadUid[dialogId].push(uid)
|
||||||
}
|
}
|
||||||
|
|
||||||
function inputLoadRemove(dialogId, uid) {
|
function inputLoadRemove(dialogId, uid) {
|
||||||
if (typeof inputLoadUid[dialogId] === "undefined") {
|
if (!dialogId || typeof inputLoadUid[dialogId] === "undefined") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
inputLoadUid[dialogId] = inputLoadUid[dialogId].filter(v => v !== uid)
|
inputLoadUid[dialogId] = inputLoadUid[dialogId].filter(v => v !== uid)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user