mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-08 14:37:29 +08:00
fix: Remove duplicate domains in the domain list initialization (#10260)
This commit is contained in:
parent
d9e7c8d880
commit
ac4962cf19
1 changed files with 1 additions and 0 deletions
|
@ -172,6 +172,7 @@ const updateDomainsString = () => {
|
|||
const initDomainList = (domainsStr: string) => {
|
||||
if (domainsStr) {
|
||||
domainList.value = domainsStr.split('\n').filter((domain) => domain.trim() !== '');
|
||||
domainList.value = Array.from(new Set(domainList.value));
|
||||
if (domainList.value.length === 0) {
|
||||
domainList.value = [''];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue