mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-08 22:46:51 +08:00
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:
parent
ad17918c84
commit
764fc8fec4
3 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue