This commit is contained in:
@@ -7,7 +7,7 @@ export const loading = ref(false)
|
|||||||
|
|
||||||
export async function getAIAnalysis() {
|
export async function getAIAnalysis() {
|
||||||
analysis.value = ""
|
analysis.value = ""
|
||||||
// 使用 streaming 流式方式 fetch /ai/analysis 接口,传入 code 和 error_info
|
// 使用 streaming 流式方式 fetch /ai 接口,传入 code 和 error_info
|
||||||
const baseUrl = import.meta.env.PUBLIC_CODEAPI_URL
|
const baseUrl = import.meta.env.PUBLIC_CODEAPI_URL
|
||||||
loading.value = true
|
loading.value = true
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ watch(turtleRunId, () => runSkulptTurtle())
|
|||||||
运行成功
|
运行成功
|
||||||
</n-tag>
|
</n-tag>
|
||||||
<n-tag v-if="showAnalysis" type="warning">运行失败</n-tag>
|
<n-tag v-if="showAnalysis" type="warning">运行失败</n-tag>
|
||||||
<n-popover v-if="showAnalysis" trigger="click">
|
<n-popover v-if="showAnalysis" trigger="click" placement="left">
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<n-button quaternary type="error" @click="getAIAnalysis">
|
<n-button quaternary type="error" @click="getAIAnalysis">
|
||||||
推测原因
|
推测原因
|
||||||
|
|||||||
Reference in New Issue
Block a user