|
|
@@ -456,6 +456,10 @@ const _onFileUpload = ($this, file) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+const _isEmptyStr = (str) => {
|
|
|
+ return !str || !str.trim()
|
|
|
+}
|
|
|
+
|
|
|
export default {
|
|
|
// 获取字符串字符长度
|
|
|
getRealLen: _getRealLen,
|
|
|
@@ -497,5 +501,6 @@ export default {
|
|
|
// 统一通知框
|
|
|
setMessage: _setMessage,
|
|
|
// 文件上传
|
|
|
- onFileUpload: _onFileUpload
|
|
|
+ onFileUpload: _onFileUpload,
|
|
|
+ isEmptyStr: _isEmptyStr
|
|
|
}
|