mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-18 11:43:40 +00:00
perf: 优化任务窗口标题偶尔出现显示不全的情况
This commit is contained in:
parent
473dbb8361
commit
8a0f53aaaf
@ -714,9 +714,10 @@ export default {
|
|||||||
openTask: {
|
openTask: {
|
||||||
handler(data) {
|
handler(data) {
|
||||||
this.taskDetail = $A.cloneJSON(data);
|
this.taskDetail = $A.cloneJSON(data);
|
||||||
this.$nextTick(() => {
|
if (this.taskDetail.parent_id === 0 && this.$refs.name) {
|
||||||
this.$refs.name && this.$refs.name.resizeTextarea();
|
this.__openTask && clearTimeout(this.__openTask);
|
||||||
})
|
this.__openTask = setTimeout(this.$refs.name.resizeTextarea, 100)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true,
|
||||||
deep: true
|
deep: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user