From 79192a889d8d288bb94f783674b0e22a9a069790 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 26 Apr 2021 21:39:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=A7=A3=E5=86=B3=20terminal=20?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E5=BB=BA=E7=AB=8B=E8=BF=9E=E6=8E=A5=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/cli/console.vue | 2 +- nezha-fronted/src/components/cli/webSSH.vue | 542 ++++++++++--------- 2 files changed, 295 insertions(+), 249 deletions(-) diff --git a/nezha-fronted/src/components/cli/console.vue b/nezha-fronted/src/components/cli/console.vue index a4c60b303..ca1ac3588 100644 --- a/nezha-fronted/src/components/cli/console.vue +++ b/nezha-fronted/src/components/cli/console.vue @@ -195,7 +195,7 @@ export default { this.term.open(terminalContainer) this.term.focus() const token = sessionStorage.getItem('nz-token') - let baseUrl = this.$axios.defaults.baseURL + let baseUrl = JSON.parse(JSON.stringify(this.$axios.defaults.baseURL)) if (baseUrl.startsWith('/')) { baseUrl = 'ws://' + window.location.host + baseUrl } else { diff --git a/nezha-fronted/src/components/cli/webSSH.vue b/nezha-fronted/src/components/cli/webSSH.vue index dc8d8d65a..e76bde7a2 100644 --- a/nezha-fronted/src/components/cli/webSSH.vue +++ b/nezha-fronted/src/components/cli/webSSH.vue @@ -2,253 +2,274 @@ @import './webSSH.scss';