diff --git a/agent/app/dto/request/website.go b/agent/app/dto/request/website.go index b12c56357..2e8567b2c 100644 --- a/agent/app/dto/request/website.go +++ b/agent/app/dto/request/website.go @@ -32,6 +32,8 @@ type WebsiteCreate struct { TaskID string `json:"taskID"` ParentWebsiteID uint `json:"parentWebsiteID"` + SiteDir string `json:"siteDir"` + RuntimeConfig FtpConfig DataBaseConfig diff --git a/agent/app/service/website.go b/agent/app/service/website.go index ff09570ff..cef2d1a1a 100644 --- a/agent/app/service/website.go +++ b/agent/app/service/website.go @@ -415,6 +415,7 @@ func (w WebsiteService) CreateWebsite(create request.WebsiteCreate) (err error) return err } website.ParentWebsiteID = parentWebsite.ID + website.SiteDir = create.SiteDir } configNginx := func(t *task.Task) error { diff --git a/frontend/src/components/card-with-header/index.vue b/frontend/src/components/card-with-header/index.vue index 36b222b36..1f9fa3700 100644 --- a/frontend/src/components/card-with-header/index.vue +++ b/frontend/src/components/card-with-header/index.vue @@ -2,12 +2,15 @@
- {{ header }} - - +
+ {{ header }} + +
+
+ +
- -
+
@@ -25,27 +28,44 @@ defineProps({