feat: add 外部AI tab to challenge page
This commit is contained in:
@@ -31,6 +31,9 @@
|
|||||||
<n-tab-pane name="chat" tab="AI 对话" display-directive="show">
|
<n-tab-pane name="chat" tab="AI 对话" display-directive="show">
|
||||||
<PromptPanel />
|
<PromptPanel />
|
||||||
</n-tab-pane>
|
</n-tab-pane>
|
||||||
|
<n-tab-pane name="external" tab="外部AI" display-directive="show">
|
||||||
|
<ExternalAIPanel :task-id="taskId" />
|
||||||
|
</n-tab-pane>
|
||||||
</n-tabs>
|
</n-tabs>
|
||||||
</div>
|
</div>
|
||||||
<div class="challenge-content">
|
<div class="challenge-content">
|
||||||
@@ -72,6 +75,7 @@ import { useMessage } from "naive-ui"
|
|||||||
import { Icon } from "@iconify/vue"
|
import { Icon } from "@iconify/vue"
|
||||||
import { marked } from "marked"
|
import { marked } from "marked"
|
||||||
import PromptPanel from "../components/PromptPanel.vue"
|
import PromptPanel from "../components/PromptPanel.vue"
|
||||||
|
import ExternalAIPanel from "../components/ExternalAIPanel.vue"
|
||||||
import Preview from "../components/Preview.vue"
|
import Preview from "../components/Preview.vue"
|
||||||
import { Challenge, Submission } from "../api"
|
import { Challenge, Submission } from "../api"
|
||||||
import { html, css, js } from "../store/editors"
|
import { html, css, js } from "../store/editors"
|
||||||
|
|||||||
Reference in New Issue
Block a user