From 4b06621274cb4072015e15d2cdca5ad65adf7262 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Mon, 6 Feb 2023 15:00:15 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=96=87=E4=BB=B6=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=20=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/init/viper/viper.go | 5 +++-- .../views/host/file-management/compress/index.vue | 5 ++++- .../host/file-management/decompress/index.vue | 5 ++++- .../views/host/file-management/detail/index.vue | 14 ++++++++++++-- .../views/host/file-management/download/index.vue | 4 ++++ frontend/src/views/host/file-management/index.vue | 2 +- .../src/views/host/file-management/move/index.vue | 5 ++++- .../views/host/file-management/process/index.vue | 12 +++++------- .../views/host/file-management/upload/index.vue | 7 +++++-- .../src/views/host/file-management/wget/index.vue | 8 ++++++-- 10 files changed, 48 insertions(+), 19 deletions(-) diff --git a/backend/init/viper/viper.go b/backend/init/viper/viper.go index 9e819c702..0e52f81fe 100644 --- a/backend/init/viper/viper.go +++ b/backend/init/viper/viper.go @@ -3,18 +3,19 @@ package viper import ( "bytes" "fmt" + "github.com/1Panel-dev/1Panel/backend/utils/cmd" "strings" "github.com/1Panel-dev/1Panel/backend/configs" "github.com/1Panel-dev/1Panel/backend/global" - "github.com/1Panel-dev/1Panel/backend/utils/cmd" "github.com/1Panel-dev/1Panel/cmd/server/conf" "github.com/fsnotify/fsnotify" "github.com/spf13/viper" ) func Init() { - stdout, err := cmd.Exec("grep '^BASE_DIR=' /usr/bin/1pctl | cut -d'=' -f2") + //stdout, err := cmd.Exec("grep '^BASE_DIR=' /usr/bin/1pctl | cut -d'=' -f2") + stdout, err := cmd.Exec("grep '^BASE_DIR=' /Users/wangzhengkun/Downloads/1pctl | cut -d'=' -f2") if err != nil { panic(err) } diff --git a/frontend/src/views/host/file-management/compress/index.vue b/frontend/src/views/host/file-management/compress/index.vue index 8580c24f4..989bf761a 100644 --- a/frontend/src/views/host/file-management/compress/index.vue +++ b/frontend/src/views/host/file-management/compress/index.vue @@ -1,12 +1,14 @@