From 5c929cfb5286a31a4e067cbc61e8774f4e7d42ae Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 06 五月 2025 11:25:41 +0800
Subject: [PATCH] 任务查看:任务名称undefined解决

---
 src/utils/dict/DictData.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/utils/dict/DictData.js b/src/utils/dict/DictData.js
index afc763e..5190286 100644
--- a/src/utils/dict/DictData.js
+++ b/src/utils/dict/DictData.js
@@ -3,11 +3,13 @@
  * @property {String} label 鏍囩
  * @property {*} value 鏍囩
  * @property {Object} raw 鍘熷鏁版嵁
+ * @property {Object} children 瀛愭爣绛�
  */
 export default class DictData {
-  constructor(label, value, raw) {
+  constructor(label, value, raw, children) {
     this.label = label
     this.value = value
     this.raw = raw
+    this.children = children.length > 0 ? children : undefined
   }
 }

--
Gitblit v1.8.0