refactor: move /helper

This commit is contained in:
yangsy
2025-11-27 16:01:50 +08:00
parent d4eade65c4
commit f278a690c6
15 changed files with 110 additions and 96 deletions

View File

@@ -0,0 +1,8 @@
import type { NdmNvrResultVO } from '@/apis';
export const isNvrCluster = (maybeNvrCluster: NdmNvrResultVO) => {
const { ipAddress, clusterList } = maybeNvrCluster;
if (!clusterList?.trim()) return false;
if (clusterList === ipAddress) return false;
return true;
};