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