fix: 栏目内添加任务应该直接归属此栏目

This commit is contained in:
kuaifan 2023-02-10 15:41:24 +08:00
parent 63bb145224
commit 08a6be9499

View File

@ -224,6 +224,7 @@ export default {
timeOptions: {shortcuts:$A.timeOptionShortcuts()},
loadIng: 0,
isMounted: false,
beforeClose: [],
}
@ -233,6 +234,7 @@ export default {
this.initCascaderData();
await this.initProjectData();
this.$nextTick(() => this.$refs.input.focus())
this.isMounted = true
},
beforeDestroy() {
@ -452,6 +454,11 @@ export default {
},
setData(data) {
if (!this.isMounted) {
this.__setData && clearTimeout(this.__setData)
this.__setData = setTimeout(_ => this.setData(data) , 10)
return
}
if (typeof data.beforeClose !== "undefined") {
this.beforeClose.push(data.beforeClose)
delete data.beforeClose;