diff --git a/myapp/frontend/src/pages/ADUGTemplate.tsx b/myapp/frontend/src/pages/ADUGTemplate.tsx index 7a407774..be3f5b9b 100644 --- a/myapp/frontend/src/pages/ADUGTemplate.tsx +++ b/myapp/frontend/src/pages/ADUGTemplate.tsx @@ -1010,27 +1010,72 @@ export default function TaskListManager(props?: IAppMenuItem) { destroyOnClose onCancel={() => { setVisableDetail(false) }}> -
- { - dataDetail.map((item, index) => { - return -
{item.label}:
-
 {
-                                            let content = item.value
-                                            if (Object.prototype.toString.call(item.value) === '[object Object]' || Object.prototype.toString.call(item.value) === '[object Array]') {
-                                                try {
-                                                    content = JSON.stringify(item.value)
-                                                } catch (error) { }
-                                            }
-                                            return content
-                                        })()
-                                    }}>
-
- }) - } +
+ {dataDetail.map((item, index) => ( +
+ {/* Label列 */} +
+ {item.label}: +
+ + {/* Value列 */} +
+
 {
+                                let content = item.value;
+                                if (
+                                    Object.prototype.toString.call(item.value) === '[object Object]' ||
+                                    Object.prototype.toString.call(item.value) === '[object Array]'
+                                ) {
+                                    try {
+                                    content = JSON.stringify(item.value, null, 2); // 格式化输出
+                                    } catch (error) {}
+                                }
+                                return content;
+                                })(),
+                            }}
+                            >
+
+
+ ))}
+ diff --git a/myapp/templates/home.html b/myapp/templates/home.html index 45134c5c..7f05658d 100644 --- a/myapp/templates/home.html +++ b/myapp/templates/home.html @@ -5,7 +5,7 @@ {% endblock %} {% block content %} -
+