From 7f1f758e60306f2900c6de151eb93709e46e327d Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Sat, 6 May 2023 11:05:33 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BD=91=E7=AB=99=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BD=91=E7=AB=99=E7=9B=AE=E5=BD=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=8A=9F=E8=83=BD=20(#892)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/website.go | 6 ++++++ frontend/src/views/website/website/index.vue | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/backend/app/service/website.go b/backend/app/service/website.go index e99e94cc3..1c046679f 100644 --- a/backend/app/service/website.go +++ b/backend/app/service/website.go @@ -96,6 +96,10 @@ func (w WebsiteService) PageWebsite(req request.WebsiteSearch) (int64, []respons if err != nil { return 0, nil, err } + nginxInstall, err := getAppInstallByKey(constant.AppOpenresty) + if err != nil { + return 0, nil, err + } for _, web := range websites { var ( appName string @@ -115,10 +119,12 @@ func (w WebsiteService) PageWebsite(req request.WebsiteSearch) (int64, []respons } runtimeName = runtime.Name } + sitePath := path.Join(constant.AppInstallDir, constant.AppOpenresty, nginxInstall.Name, "www", "sites", web.Alias) websiteDTOs = append(websiteDTOs, response.WebsiteDTO{ Website: web, AppName: appName, RuntimeName: runtimeName, + SitePath: sitePath, }) } return total, websiteDTOs, nil diff --git a/frontend/src/views/website/website/index.vue b/frontend/src/views/website/website/index.vue index 261802448..82252ccc5 100644 --- a/frontend/src/views/website/website/index.vue +++ b/frontend/src/views/website/website/index.vue @@ -79,6 +79,15 @@ [{{ row.runtimeName }}] + + +