修复原生ssh接入时上传文件弹窗被挡住的bug
This commit is contained in:
parent
74f04994f7
commit
fbb996843c
@ -20,7 +20,8 @@ class Term extends Component {
|
|||||||
term: undefined,
|
term: undefined,
|
||||||
webSocket: undefined,
|
webSocket: undefined,
|
||||||
fitAddon: undefined,
|
fitAddon: undefined,
|
||||||
sessionId: undefined
|
sessionId: undefined,
|
||||||
|
enterBtnIndex: 1001
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount = async () => {
|
componentDidMount = async () => {
|
||||||
@ -215,17 +216,17 @@ class Term extends Component {
|
|||||||
}}/>
|
}}/>
|
||||||
|
|
||||||
<Draggable>
|
<Draggable>
|
||||||
<Affix style={{position: 'absolute', top: 50, right: 50, zIndex: 9999}}>
|
<Affix style={{position: 'absolute', top: 50, right: 50, zIndex: this.state.enterBtnIndex}}>
|
||||||
<Button icon={<AppstoreTwoTone/>} onClick={() => {
|
<Button icon={<AppstoreTwoTone/>} onClick={() => {
|
||||||
this.setState({
|
this.setState({
|
||||||
fileSystemVisible: true,
|
fileSystemVisible: true,
|
||||||
|
enterBtnIndex: 999, // xterm.js 输入框的zIndex是1000,在弹出文件管理页面后要隐藏此按钮
|
||||||
});
|
});
|
||||||
}}/>
|
}}/>
|
||||||
</Affix>
|
</Affix>
|
||||||
</Draggable>
|
</Draggable>
|
||||||
|
|
||||||
<Drawer
|
<Drawer
|
||||||
style={{zIndex: 10000}}
|
|
||||||
title={'会话详情'}
|
title={'会话详情'}
|
||||||
placement="right"
|
placement="right"
|
||||||
width={window.innerWidth * 0.8}
|
width={window.innerWidth * 0.8}
|
||||||
@ -233,7 +234,8 @@ class Term extends Component {
|
|||||||
// maskClosable={false}
|
// maskClosable={false}
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
this.setState({
|
this.setState({
|
||||||
fileSystemVisible: false
|
fileSystemVisible: false,
|
||||||
|
enterBtnIndex: 1001, // xterm.js 输入框的zIndex是1000,在隐藏文件管理页面后要显示此按钮
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
visible={this.state.fileSystemVisible}
|
visible={this.state.fileSystemVisible}
|
||||||
|
Loading…
Reference in New Issue
Block a user