From cccd18c6c20ad914de7fb6d2f07f85400f19da15 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Wed, 10 Nov 2021 10:44:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20console=E9=A1=B5=E9=9D=A2=20url=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/cli/console.vue | 4 ++-- nezha-fronted/src/components/cli/webSSH.vue | 4 ++-- .../src/components/common/rightBox/alertSilenceBox.vue | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/cli/console.vue b/nezha-fronted/src/components/cli/console.vue index a333aee3c..e2dfefe9f 100644 --- a/nezha-fronted/src/components/cli/console.vue +++ b/nezha-fronted/src/components/cli/console.vue @@ -204,9 +204,9 @@ export default { } let url = '' if (this.terminal.type === 'asset') { - url = baseUrl + `/terminal.${protocol}?width=` + this.terminal.width + '&height=' + this.terminal.height + '&cols=' + this.terminal.cols + '&rows=' + this.terminal.rows + '&token=' + token + '&assetId=' + this.terminal.assetId + '&accountId=' + this.terminal.accountId + '&uuid=' + this.terminal.uuid + url = baseUrl + '/terminal.ws?width=' + this.terminal.width + '&height=' + this.terminal.height + '&cols=' + this.terminal.cols + '&rows=' + this.terminal.rows + '&token=' + token + '&assetId=' + this.terminal.assetId + '&accountId=' + this.terminal.accountId + '&uuid=' + this.terminal.uuid } else if (this.terminal.type === 'custom') { - url = baseUrl + `/terminal.${protocol}?width=` + this.terminal.width + '&height=' + this.terminal.height + '&cols=' + this.terminal.cols + '&rows=' + this.terminal.rows + '&token=' + token + '&accountId=' + this.terminal.accountId + '&uuid=' + this.terminal.uuid + url = baseUrl + '/terminal.ws?width=' + this.terminal.width + '&height=' + this.terminal.height + '&cols=' + this.terminal.cols + '&rows=' + this.terminal.rows + '&token=' + token + '&accountId=' + this.terminal.accountId + '&uuid=' + this.terminal.uuid Object.keys(this.terminal.custom).forEach(key => { if (this.terminal.custom[key]) { url += '&' + key + '=' + this.terminal.custom[key] diff --git a/nezha-fronted/src/components/cli/webSSH.vue b/nezha-fronted/src/components/cli/webSSH.vue index ca024b93b..60f5f119d 100644 --- a/nezha-fronted/src/components/cli/webSSH.vue +++ b/nezha-fronted/src/components/cli/webSSH.vue @@ -239,12 +239,12 @@
- + - + diff --git a/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue b/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue index 690be8189..f964d7390 100644 --- a/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue @@ -70,6 +70,7 @@ v-model="item.name" :fetch-suggestions="querySearch" class="inline-input silence-matchers-key" + popper-class="right-box-select-top right-public-box-dropdown-top" placeholder="key" size="mini" @select="handleSelect"