refactor: move /helper
This commit is contained in:
8
src/helper/nvr-cluster.ts
Normal file
8
src/helper/nvr-cluster.ts
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user