From b48356e1b39f8e812f85d1627c0fc18e1f4d58ba Mon Sep 17 00:00:00 2001 From: lihang <lihang@vci-tech.com> Date: 星期四, 15 六月 2023 16:42:41 +0800 Subject: [PATCH] 对象建模菜单相关的bug修正 --- 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