fix: Fixed the issue where IPv6 would turn off after favoriting a website. (#9946)

Refs https://github.com/1Panel-dev/1Panel/issues/9945
This commit is contained in:
CityFun 2025-08-12 10:20:48 +08:00 committed by GitHub
parent ad17918c84
commit 764fc8fec4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -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 {

View file

@ -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))

View file

@ -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;
});
};