diff --git a/nezha-fronted/src/assets/css/components/cli/fileDirectory.scss b/nezha-fronted/src/assets/css/components/cli/fileDirectory.scss
index e7f2d84ae..075b66d4e 100644
--- a/nezha-fronted/src/assets/css/components/cli/fileDirectory.scss
+++ b/nezha-fronted/src/assets/css/components/cli/fileDirectory.scss
@@ -72,6 +72,9 @@
margin-right: 20px;
}
}
+ .el-input--suffix .el-input__inner{
+ padding-right: 106px;
+ }
}
.file-directory-content{
height: calc(100% - 60px);
@@ -100,6 +103,14 @@
box-sizing: border-box;
padding-left: 10px;
display: inline-block;
+ position: relative;
+ .nz-icon-link{
+ position: absolute;
+ font-size: 10px;
+ left: 7px;
+ bottom: -5px;
+ font-weight: 600;
+ }
}
.file-size{
width: 15%;
diff --git a/nezha-fronted/src/components/cli/consoleNew.vue b/nezha-fronted/src/components/cli/consoleNew.vue
index 27d8e5699..30da7583b 100644
--- a/nezha-fronted/src/components/cli/consoleNew.vue
+++ b/nezha-fronted/src/components/cli/consoleNew.vue
@@ -249,6 +249,7 @@ export default {
closeSocket () {
if (this.terminalSocket) {
this.terminalSocket.close()
+ this.terminalSocket = ''
}
if (this.term) {
this.term.destroy()
@@ -305,10 +306,12 @@ export default {
})
},
enterStr (message) {
- this.terminalSocket.send(message)
- setTimeout(()=>{
- this.terminalSocket.send('\n')
- }, 100)
+ if (this.terminalSocket && this.terminal.isLogin) {
+ this.terminalSocket.send(message)
+ setTimeout(()=>{
+ this.terminalSocket.send('\n')
+ }, 100)
+ }
}
},
mounted () {
diff --git a/nezha-fronted/src/components/cli/fileDirectory.vue b/nezha-fronted/src/components/cli/fileDirectory.vue
index 708d681be..38ce8eebf 100644
--- a/nezha-fronted/src/components/cli/fileDirectory.vue
+++ b/nezha-fronted/src/components/cli/fileDirectory.vue
@@ -15,8 +15,12 @@
-
-
+
+
+
+ {{$t('terminal.confirm')}}
+
+
Show hide File:
@@ -29,7 +33,19 @@