diff --git a/pkg/core/taskmgr.py b/pkg/core/taskmgr.py
index 0a8af919..d7436b06 100644
--- a/pkg/core/taskmgr.py
+++ b/pkg/core/taskmgr.py
@@ -137,6 +137,8 @@ class TaskWrapper:
for frame in self.task_stack:
exception_traceback += f" File \"{frame.f_code.co_filename}\", line {frame.f_lineno}, in {frame.f_code.co_name}\n"
+ exception_traceback += f" {self.assume_exception().__str__()}\n"
+
return {
"id": self.id,
"task_type": self.task_type,
diff --git a/web/src/App.vue b/web/src/App.vue
index 02a42f45..f8ebed38 100644
--- a/web/src/App.vue
+++ b/web/src/App.vue
@@ -69,7 +69,7 @@
import { getCurrentInstance } from 'vue'
import {provide, ref, watch} from 'vue';
-import TaskDialog from '@/components/TaskDialog.vue'
+import TaskDialog from '@/components/TaskListDialog.vue'
const { proxy } = getCurrentInstance()
diff --git a/web/src/components/TaskCard.vue b/web/src/components/TaskCard.vue
index 653a8670..167f6f41 100644
--- a/web/src/components/TaskCard.vue
+++ b/web/src/components/TaskCard.vue
@@ -2,19 +2,66 @@
-
+
+
+
{{ task.kind }}
{{ task.label }}
-
正在执行: {{ task.task_context.current_action }}
+
正在执行: {{ task.task_context.current_action }}
+
完成
+
+
+
+ {{ task.runtime.exception }}
+
+
+
+
+
+
+
+ 关闭
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+
+
+
+
@@ -26,6 +73,11 @@ defineProps({
required: true
}
})
+
+import { ref } from 'vue'
+
+const exceptionDialogShow = ref(false)
+const detailsDialogShow = ref(false)
\ No newline at end of file
+
+#task-details-log {
+ width: calc(100% - 2rem);
+ height: 10rem;
+ resize: none;
+ border: none;
+ padding: 0.6rem;
+ font-size: 0.8rem;
+ outline: none;
+ overflow: auto;
+ appearance: none;
+ background-color: #f6f6f6;
+ margin-inline: 1rem;
+}
+
diff --git a/web/src/components/TaskDialog.vue b/web/src/components/TaskListDialog.vue
similarity index 97%
rename from web/src/components/TaskDialog.vue
rename to web/src/components/TaskListDialog.vue
index d7748154..7cf9207a 100644
--- a/web/src/components/TaskDialog.vue
+++ b/web/src/components/TaskListDialog.vue
@@ -9,6 +9,7 @@
+