@@ -63,20 +54,15 @@
-
-
\ No newline at end of file
diff --git a/prompto-lab-ui/src/components/FormField.vue b/prompto-lab-ui/src/components/Chat/FormField.vue
similarity index 100%
rename from prompto-lab-ui/src/components/FormField.vue
rename to prompto-lab-ui/src/components/Chat/FormField.vue
diff --git a/prompto-lab-ui/src/components/LoadingAnimation.vue b/prompto-lab-ui/src/components/Chat/LoadingAnimation.vue
similarity index 100%
rename from prompto-lab-ui/src/components/LoadingAnimation.vue
rename to prompto-lab-ui/src/components/Chat/LoadingAnimation.vue
diff --git a/prompto-lab-ui/src/components/MultipleChoiceOptions.vue b/prompto-lab-ui/src/components/Chat/MultipleChoiceOptions.vue
similarity index 100%
rename from prompto-lab-ui/src/components/MultipleChoiceOptions.vue
rename to prompto-lab-ui/src/components/Chat/MultipleChoiceOptions.vue
diff --git a/prompto-lab-ui/src/components/QuestionRenderer.vue b/prompto-lab-ui/src/components/Chat/QuestionRenderer.vue
similarity index 99%
rename from prompto-lab-ui/src/components/QuestionRenderer.vue
rename to prompto-lab-ui/src/components/Chat/QuestionRenderer.vue
index a0547cb..62a8f07 100644
--- a/prompto-lab-ui/src/components/QuestionRenderer.vue
+++ b/prompto-lab-ui/src/components/Chat/QuestionRenderer.vue
@@ -343,6 +343,7 @@ const loadingType = computed(() => {
// 监听问题变化,重置答案
watch(() => props.currentQuestion, (newQuestion, oldQuestion) => {
if (newQuestion && newQuestion !== oldQuestion) {
+ console.log(props.currentQuestion)
resetAnswers()
}
}, { deep: true })
diff --git a/prompto-lab-ui/src/components/SingleChoiceOptions.vue b/prompto-lab-ui/src/components/Chat/SingleChoiceOptions.vue
similarity index 100%
rename from prompto-lab-ui/src/components/SingleChoiceOptions.vue
rename to prompto-lab-ui/src/components/Chat/SingleChoiceOptions.vue
diff --git a/prompto-lab-ui/src/components/Chat/TreeNode.vue b/prompto-lab-ui/src/components/Chat/TreeNode.vue
deleted file mode 100644
index cd0035a..0000000
--- a/prompto-lab-ui/src/components/Chat/TreeNode.vue
+++ /dev/null
@@ -1,355 +0,0 @@
-
-
-
-
-
-
- {{ node.type === 'user' ? '👤' : '🤖' }}
-
-
{{ truncatedText }}
-
-
-
-
-
-
-
- {{ node.children.length }}
- 个分支
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/prompto-lab-ui/src/components/QuestionRendererTest.vue b/prompto-lab-ui/src/components/QuestionRendererTest.vue
deleted file mode 100644
index 6b8c510..0000000
--- a/prompto-lab-ui/src/components/QuestionRendererTest.vue
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-
-
-
-
-
-
-
-
当前测试数据:
-
{{ JSON.stringify(currentQuestion, null, 2) }}
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/prompto-lab-ui/src/router/index.ts b/prompto-lab-ui/src/router/index.ts
index 7ab9c22..439feeb 100644
--- a/prompto-lab-ui/src/router/index.ts
+++ b/prompto-lab-ui/src/router/index.ts
@@ -41,14 +41,6 @@ const router = createRouter({
title: 'API配置 - AI诗人'
}
},
- {
- path: '/test/question-renderer',
- name: 'question-renderer-test',
- component: () => import('../views/QuestionRendererTestView.vue'),
- meta: {
- title: 'QuestionRenderer测试 - PromptoLab'
- }
- }
]
})
diff --git a/prompto-lab-ui/src/views/QuestionRendererTestView.vue b/prompto-lab-ui/src/views/QuestionRendererTestView.vue
deleted file mode 100644
index 22fb206..0000000
--- a/prompto-lab-ui/src/views/QuestionRendererTestView.vue
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file