|
|
@ -20,11 +20,7 @@ |
|
|
|
<div slot="text">{{$t('Script')}}</div> |
|
|
|
<div slot="text">{{$t('Script')}}</div> |
|
|
|
<div slot="content"> |
|
|
|
<div slot="content"> |
|
|
|
<div class="from-mirror"> |
|
|
|
<div class="from-mirror"> |
|
|
|
<textarea |
|
|
|
<textarea id="code-shell-mirror" name="code-shell-mirror" style="opacity: 0"></textarea> |
|
|
|
id="code-shell-mirror" |
|
|
|
|
|
|
|
name="code-shell-mirror" |
|
|
|
|
|
|
|
style="opacity: 0"> |
|
|
|
|
|
|
|
</textarea> |
|
|
|
|
|
|
|
<a class="ans-modal-box-max"> |
|
|
|
<a class="ans-modal-box-max"> |
|
|
|
<em class="ans-icon-max" @click="setEditorVal"></em> |
|
|
|
<em class="ans-icon-max" @click="setEditorVal"></em> |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -365,9 +361,11 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
mounted () { |
|
|
|
// Added delay loading in script input box |
|
|
|
// Added delay loading in script input box |
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
this._handlerEditor() |
|
|
|
this._handlerEditor() |
|
|
|
}, 350) |
|
|
|
}, 350) |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
destroyed () { |
|
|
|
destroyed () { |
|
|
|
if (editor) { |
|
|
|
if (editor) { |
|
|
|