fix: 切换对话之后无法通过右键@

This commit is contained in:
kuaifan 2024-06-04 19:33:38 +08:00
parent 4c5d3bd43e
commit a834481d32
2 changed files with 7 additions and 3 deletions

View File

@ -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;

View File

@ -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)