mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-07 18:07:05 +00:00
fix: 栏目内添加任务应该直接归属此栏目
This commit is contained in:
parent
63bb145224
commit
08a6be9499
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user