🐛 修复打开或关闭sftp终端光标位置错误

This commit is contained in:
chaos-zhu 2024-08-11 23:23:46 +08:00
parent edc3eb5718
commit 52ad7e3d25

View File

@ -252,6 +252,12 @@ watch(terminalTabsLen, () => {
deep: false
})
watch(showSftp, () => {
nextTick(() => {
resizeTerminal()
})
})
// const windowBeforeUnload = () => {
// window.onbeforeunload = () => {
// return ''
@ -290,11 +296,6 @@ const handleFullScreen = () => {
// removeTab(key)
// }
// const handleVisibleSidebar = () => {
// visible.value = !visible.value
// resizeTerminal()
// }
const resizeTerminal = () => {
for (let terminalTabRef of terminalRefs.value) {
const { handleResize } = terminalTabRef || {}