🐛 修复打开或关闭sftp终端光标位置错误
This commit is contained in:
parent
edc3eb5718
commit
52ad7e3d25
@ -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 || {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user