chore: ip检查新旧ip变化对比逻辑修复

v2^2
xiaojunnuo 2025-07-18 18:24:01 +08:00
parent e40345095f
commit 8fb5ca2fe1
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export class SiteIpService extends BaseService<SiteIpEntity> {
if (oldIps.length === ips.length ){
//检查是否有变化
const oldIpList = oldIps.map(ip=>ip.ipAddress).sort().join(",")
const newIpList = ips.filter(ip=>!oldIpList.includes(ip)).sort().join(",")
const newIpList = ips.sort().join(",")
if(oldIpList === newIpList){
//无变化
hasChanged = false