Browse Source

修改万能校验函数

dev
邓平艺 5 years ago
parent
commit
860bc38f7b
  1. 2
      common/shared.js

2
common/shared.js

@ -11,6 +11,8 @@ export function isRight(obj) {
}
} else if (isValueType(obj) === 'number' && (isValueType(obj) === "number" && !isNaN(obj)) && obj !== 0) {
return true;
} else if (isValueType(obj) === 'boolean') {
return obj
}
for (var key in obj) {
return true;

Loading…
Cancel
Save