From 12aca8ff516f9defc456789de3d007917adab2c6 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Wed, 12 Aug 2020 14:34:34 +0800 Subject: [PATCH] [optimization][ui]Prevent the shell script input box from being empty --- .../pages/dag/_source/formModel/tasks/shell.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue index 712a2081b..2f4609a6f 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue @@ -20,11 +20,7 @@
{{$t('Script')}}
- + @@ -365,9 +361,11 @@ }, mounted () { // Added delay loading in script input box - setTimeout(() => { - this._handlerEditor() - }, 350) + this.$nextTick(() => { + setTimeout(() => { + this._handlerEditor() + }, 350) + }) }, destroyed () { if (editor) { -- GitLab