【优化】订单发货方式切换逻辑

This commit is contained in:
puhui999
2024-08-06 16:09:53 +08:00
parent 1bc75b2ff5
commit 196a1b2235
4 changed files with 115 additions and 43 deletions
+5 -1
View File
@@ -23,6 +23,10 @@ export function isString(value) {
}
export function isEmpty(value) {
if (value === '' || value === undefined || value === null){
return true;
}
if (isArray(value)) {
return value.length === 0;
}
@@ -31,7 +35,7 @@ export function isEmpty(value) {
return Object.keys(value).length === 0;
}
return value === '' || value === undefined || value === null;
return false
}
export function isBoolean(value) {