chore: redundancy code

This commit is contained in:
韩应波 2022-07-19 16:38:22 +08:00
parent 07c2567751
commit 73ceb2b4ce

View File

@ -22,7 +22,7 @@ export function joinTimestamp(join: boolean, restful = false): string | object {
* @description: Format request parameter time
*/
export function formatRequestDate(params: Recordable) {
if (Object.prototype.toString.call(params) !== '[object Object]') {
if (!isObject(params)) {
return;
}