From 082032e15fd05cf0c24923836e797e0c0ea6b162 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Thu, 2 Nov 2023 18:23:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E4=B8=BB=E6=9C=BA?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=98=BE=E7=A4=BA=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#2779)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/dashboard.go | 2 +- frontend/src/views/host/terminal/host/index.vue | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/backend/app/service/dashboard.go b/backend/app/service/dashboard.go index 0a37ecfda..532281be7 100644 --- a/backend/app/service/dashboard.go +++ b/backend/app/service/dashboard.go @@ -31,7 +31,7 @@ func NewIDashboardService() IDashboardService { } func (u *DashboardService) Restart(operation string) error { - if operation != "1panel" && operation != "system" { + if operation != "panel" && operation != "system" { return fmt.Errorf("handle restart operation %s failed, err: nonsupport such operation", operation) } itemCmd := fmt.Sprintf("%s 1pctl restart", cmd.SudoHandleCmd()) diff --git a/frontend/src/views/host/terminal/host/index.vue b/frontend/src/views/host/terminal/host/index.vue index 59b39faf8..d1e17cdb8 100644 --- a/frontend/src/views/host/terminal/host/index.vue +++ b/frontend/src/views/host/terminal/host/index.vue @@ -55,12 +55,7 @@ {{ row.groupBelong }} - - - +