update 平台配置页面

This commit is contained in:
2024-04-24 11:00:00 +08:00
parent f3ffaaaa0b
commit 68ac106f65
4 changed files with 83 additions and 26 deletions

View File

@@ -107,6 +107,25 @@ export function selectDictLabels(datas, value, separator) {
return actions.join('').substring(0, actions.join('').length - 1);
}
/*
* 验证字符串是否为空(也不能为纯空格)
* true--说明为空, false--说明不为空
*/
export function isEmptyString(string) {
if (
string == undefined ||
typeof string == 'undefined' ||
!string ||
string == null ||
string == '' ||
/^\s+$/gi.test(string)
) {
return true;
} else {
return false;
}
}
// 字符串格式化(%s )
export function sprintf(str) {
var args = arguments, flag = true, i = 1;