Browse Source

Merge pull request #3474 from break60/1.3.2-release

[optimization][ui]Prevent the shell script input box from being empty
pull/3/MERGE
xingchun-chen 4 years ago committed by GitHub
parent
commit
a678c82760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue

14
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue

@ -20,11 +20,7 @@
<div slot="text">{{$t('Script')}}</div>
<div slot="content">
<div class="from-mirror">
<textarea
id="code-shell-mirror"
name="code-shell-mirror"
style="opacity: 0">
</textarea>
<textarea id="code-shell-mirror" name="code-shell-mirror" style="opacity: 0"></textarea>
<a class="ans-modal-box-max">
<em class="ans-icon-max" @click="setEditorVal"></em>
</a>
@ -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) {

Loading…
Cancel
Save