feat: add 外部AI tab to challenge page

This commit is contained in:
2026-03-29 09:30:02 -06:00
parent 1744c405a5
commit f26b06877c

View File

@@ -31,6 +31,9 @@
<n-tab-pane name="chat" tab="AI 对话" display-directive="show">
<PromptPanel />
</n-tab-pane>
<n-tab-pane name="external" tab="外部AI" display-directive="show">
<ExternalAIPanel :task-id="taskId" />
</n-tab-pane>
</n-tabs>
</div>
<div class="challenge-content">
@@ -72,6 +75,7 @@ import { useMessage } from "naive-ui"
import { Icon } from "@iconify/vue"
import { marked } from "marked"
import PromptPanel from "../components/PromptPanel.vue"
import ExternalAIPanel from "../components/ExternalAIPanel.vue"
import Preview from "../components/Preview.vue"
import { Challenge, Submission } from "../api"
import { html, css, js } from "../store/editors"