From 764fc8fec47a61f1db93c30064e70a02748de7c4 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 12 Aug 2025 10:20:48 +0800 Subject: [PATCH] fix: Fixed the issue where IPv6 would turn off after favoriting a website. (#9946) Refs https://github.com/1Panel-dev/1Panel/issues/9945 --- agent/app/dto/response/website.go | 1 + agent/app/service/website.go | 1 + frontend/src/views/website/website/config/basic/other/index.vue | 1 + 3 files changed, 3 insertions(+) diff --git a/agent/app/dto/response/website.go b/agent/app/dto/response/website.go index cbeaa0821..ed0ad4cdb 100644 --- a/agent/app/dto/response/website.go +++ b/agent/app/dto/response/website.go @@ -37,6 +37,7 @@ type WebsiteRes struct { ChildSites []string `json:"childSites"` RuntimeType string `json:"runtimeType"` Favorite bool `json:"favorite"` + IPV6 bool `json:"IPV6"` } type WebsiteOption struct { diff --git a/agent/app/service/website.go b/agent/app/service/website.go index 33cdf83eb..24b9ec543 100644 --- a/agent/app/service/website.go +++ b/agent/app/service/website.go @@ -202,6 +202,7 @@ func (w WebsiteService) PageWebsite(req request.WebsiteSearch) (int64, []respons AppInstallID: appInstallID, RuntimeType: runtimeType, Favorite: web.Favorite, + IPV6: web.IPV6, } sites, _ := websiteRepo.List(websiteRepo.WithParentID(web.ID)) diff --git a/frontend/src/views/website/website/config/basic/other/index.vue b/frontend/src/views/website/website/config/basic/other/index.vue index a0e55c709..ff282f448 100644 --- a/frontend/src/views/website/website/config/basic/other/index.vue +++ b/frontend/src/views/website/website/config/basic/other/index.vue @@ -101,6 +101,7 @@ const search = async () => { form.webSiteGroupId = res.data.webSiteGroupId; form.IPV6 = res.data.IPV6; form.alias = res.data.alias; + form.favorite = res.data.favorite; }); };