diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogMonitorTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogMonitorTab.vue index ff503b899..af10d2578 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogMonitorTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogMonitorTab.vue @@ -105,8 +105,11 @@ export default { } else { baseUrl = baseUrl.replace('http://', 'ws://').replace('https://', 'ws://') } + if (!baseUrl.endsWith('/')) { + baseUrl += '/' + } /// monitor - const url = baseUrl + '/terminal/monitor.ws?' + '&token=' + token + '&uuid=' + this.obj.uuid + const url = baseUrl + 'terminal/monitor.ws?' + '&token=' + token + '&uuid=' + this.obj.uuid if (this.terminalSocket) { // 如果存在之前的链接 先断开 再链接新的 this.terminalSocket.close() } diff --git a/nezha-fronted/src/components/common/table/settings/mibTable.vue b/nezha-fronted/src/components/common/table/settings/mibTable.vue index c2a9ea7c7..6568ec9cc 100644 --- a/nezha-fronted/src/components/common/table/settings/mibTable.vue +++ b/nezha-fronted/src/components/common/table/settings/mibTable.vue @@ -61,7 +61,7 @@