合并CRM

This commit is contained in:
xuli3099
2025-08-25 16:41:33 +08:00
parent fd5c5739e4
commit 0a1d4de168
78 changed files with 19363 additions and 159 deletions

View File

@@ -40,4 +40,12 @@ export function isUrl(url) {
const urlRegex = /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/;
return urlRegex.test(url);
}
/**
* 是否为空
*/
export function isEmpty(value) {
if (value === null || value === undefined) return true
if (typeof value === 'string') return value.trim() === ''
if (Array.isArray(value)) return value.length === 0
return false
}