fix: 修复长指令&sftp自动回车的问题

This commit is contained in:
chaoszhu
2025-07-21 20:57:38 +08:00
parent 85c95f2528
commit 0621713d52
3 changed files with 5 additions and 4 deletions
@@ -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')
}
})
}