From af4655ca7d5e9bdd84991d79ee4696dc06c6e8e6 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 06 六月 2023 17:51:57 +0800 Subject: [PATCH] 修改树参照的options及接口参数组装 --- Source/UBCS-WEB/src/util/func.js | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/src/util/func.js b/Source/UBCS-WEB/src/util/func.js index c347c27..12f731b 100644 --- a/Source/UBCS-WEB/src/util/func.js +++ b/Source/UBCS-WEB/src/util/func.js @@ -102,4 +102,12 @@ } return str; } + /** + * 鍒ゆ柇鏄惁涓哄璞″苟涓嶄负绌哄璞� + * @param value + * @returns {Boolean} + */ + static isValuableObj(value) { + return typeof value === 'object' && value !== null && Object.keys(value).length > 0; + } } -- Gitblit v1.9.3