🐛 修复打开或关闭sftp终端光标位置错误
This commit is contained in:
parent
edc3eb5718
commit
52ad7e3d25
@ -252,6 +252,12 @@ watch(terminalTabsLen, () => {
|
|||||||
deep: false
|
deep: false
|
||||||
})
|
})
|
||||||
|
|
||||||
|
watch(showSftp, () => {
|
||||||
|
nextTick(() => {
|
||||||
|
resizeTerminal()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
// const windowBeforeUnload = () => {
|
// const windowBeforeUnload = () => {
|
||||||
// window.onbeforeunload = () => {
|
// window.onbeforeunload = () => {
|
||||||
// return ''
|
// return ''
|
||||||
@ -290,11 +296,6 @@ const handleFullScreen = () => {
|
|||||||
// removeTab(key)
|
// removeTab(key)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// const handleVisibleSidebar = () => {
|
|
||||||
// visible.value = !visible.value
|
|
||||||
// resizeTerminal()
|
|
||||||
// }
|
|
||||||
|
|
||||||
const resizeTerminal = () => {
|
const resizeTerminal = () => {
|
||||||
for (let terminalTabRef of terminalRefs.value) {
|
for (let terminalTabRef of terminalRefs.value) {
|
||||||
const { handleResize } = terminalTabRef || {}
|
const { handleResize } = terminalTabRef || {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user