mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-27 15:50:43 +00:00
fix: 栏目内添加任务应该直接归属此栏目
This commit is contained in:
parent
63bb145224
commit
08a6be9499
@ -224,6 +224,7 @@ export default {
|
|||||||
timeOptions: {shortcuts:$A.timeOptionShortcuts()},
|
timeOptions: {shortcuts:$A.timeOptionShortcuts()},
|
||||||
|
|
||||||
loadIng: 0,
|
loadIng: 0,
|
||||||
|
isMounted: false,
|
||||||
|
|
||||||
beforeClose: [],
|
beforeClose: [],
|
||||||
}
|
}
|
||||||
@ -233,6 +234,7 @@ export default {
|
|||||||
this.initCascaderData();
|
this.initCascaderData();
|
||||||
await this.initProjectData();
|
await this.initProjectData();
|
||||||
this.$nextTick(() => this.$refs.input.focus())
|
this.$nextTick(() => this.$refs.input.focus())
|
||||||
|
this.isMounted = true
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
@ -452,6 +454,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
setData(data) {
|
setData(data) {
|
||||||
|
if (!this.isMounted) {
|
||||||
|
this.__setData && clearTimeout(this.__setData)
|
||||||
|
this.__setData = setTimeout(_ => this.setData(data) , 10)
|
||||||
|
return
|
||||||
|
}
|
||||||
if (typeof data.beforeClose !== "undefined") {
|
if (typeof data.beforeClose !== "undefined") {
|
||||||
this.beforeClose.push(data.beforeClose)
|
this.beforeClose.push(data.beforeClose)
|
||||||
delete data.beforeClose;
|
delete data.beforeClose;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user