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