修改docker安装文档

This commit is contained in:
dushixiang
2020-12-28 23:10:19 +08:00
parent d132a0ac65
commit 51dd5632b0
3 changed files with 23 additions and 14 deletions

View File

@ -6,7 +6,7 @@
docker run -d \
-p 8088:8088 \
--name next-terminal \
--restart always dushixiang/next-terminal:0.0.2
--restart always dushixiang/next-terminal:latest
```
### 使用`mysql`存储数据
@ -21,7 +21,7 @@ docker run -d \
-e MYSQL_PASSWORD=mysql \
-e MYSQL_DATABASE=next_terminal \
--name next-terminal \
--restart always dushixiang/next-terminal:0.0.2
--restart always dushixiang/next-terminal:latest
```
### 注意事项 ⚠️

View File

@ -1,6 +1,6 @@
{
"name": "next-terminal",
"version": "0.0.2",
"version": "0.0.3",
"private": true,
"dependencies": {
"@ant-design/icons": "^4.3.0",

View File

@ -138,10 +138,14 @@ class Access extends Component {
clipboardText: data.data
})
if (this.state.protocol === 'ssh') {
if (data.data && data.data.length > 0) {
message.success('您输入的内容已复制到远程服务器上,使用右键将自动粘贴。');
}
} else {
if (data.data && data.data.length > 0) {
message.success('您输入的内容已复制到远程服务器上');
}
}
}
@ -852,6 +856,8 @@ class Access extends Component {
</Affix>
{
this.state.protocol === 'ssh' || this.state.protocol === 'rdp' ?
<Affix style={{position: 'absolute', top: 50, right: 50}}>
<Button
icon={<FolderOpenOutlined/>}
@ -861,6 +867,9 @@ class Access extends Component {
>
</Button>
</Affix>
: null
}
<Drawer
title={title}