mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-10-07 12:48:28 +08:00
fix: 修复长指令&sftp自动回车的问题
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
</li>
|
||||
<li @click="handleFromJson(true)">
|
||||
<svg-icon name="icon-json" class="icon" />
|
||||
<span class="from">EadyNode</span>
|
||||
<span class="from">EasyNode</span>
|
||||
<span class="type">(json)</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -73,7 +73,7 @@ const stopResize = () => {
|
||||
}
|
||||
|
||||
const execCommand = (command) => {
|
||||
emit('exec-command', command)
|
||||
emit('exec-command', command, 'script')
|
||||
}
|
||||
|
||||
// 清理事件监听
|
||||
|
||||
@@ -541,7 +541,8 @@ import unknowIcon from '@/assets/image/system/unknow.png'
|
||||
import { useContextMenu } from '@/composables/useContextMenu'
|
||||
import TextEditor from '@/components/text-editor/index.vue'
|
||||
import ImagePreview from '@/components/image-preview/index.vue'
|
||||
import { EventBus } from '@/utils'
|
||||
|
||||
const emit = defineEmits(['exec-command', ])
|
||||
|
||||
const props = defineProps({
|
||||
hostId: {
|
||||
@@ -1593,7 +1594,7 @@ const onRowContextMenu = (row, _column, event) => {
|
||||
items.push({
|
||||
label: '发送cd指令到终端',
|
||||
onClick: () => {
|
||||
EventBus.$emit('exec_external_command', cdCommand)
|
||||
emit('exec-command', cdCommand, 'script')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user