feat: 版本升级及小问题调整

This commit is contained in:
meilin.huang
2022-02-07 17:49:48 +08:00
parent 01216acc5d
commit 3deae14fb9
8 changed files with 124 additions and 41 deletions

View File

@@ -46,6 +46,19 @@ export function isEquals(obj1: any, obj2: any, msg: string) {
}
}
/**
* 断言不能为空值即null,0,''等
*
* @param obj1 对象1
* @param obj2 对象2
* @param msg 错误消息
*/
export function notBlank(obj1: any, msg: string) {
if (!obj1) {
throw new AssertError(msg);
}
}
/**
* 断言表达式为true
*