feat:设备使用记录

This commit is contained in:
houjunxiang
2026-03-05 16:54:47 +08:00
parent 749ac7f507
commit 9c88c45d66
357 changed files with 21486 additions and 5845 deletions

View File

@@ -237,6 +237,13 @@ export function object(value) {
return Object.prototype.toString.call(value) === '[object Object]'
}
/**
* 是否是Promise对象
*/
export function objectPromise(value) {
return Object.prototype.toString.call(value) === '[object Promise]';
}
/**
* 是否短信验证码
*/
@@ -257,7 +264,7 @@ export function func(value) {
* @param {Object} value
*/
export function promise(value) {
return object(value) && func(value.then) && func(value.catch)
return objectPromise(value) && func(value.then) && func(value.catch)
}
/** 是否图片格式