fix AI prompt chain

This commit is contained in:
xuyue committed 2026-03-09 15:02:50 +08:00
1 parent 46347ff99b
commit f7e9d39bc2
6 files changed
+105 -89

No files matched your search

+9 -1
View File
@@ -4,6 +4,8 @@
<n-flex>
<n-button quaternary @click="download" :disabled="!showDL">下载</n-button>
<n-button quaternary @click="open">全屏</n-button>
<n-button quaternary v-if="props.clearable" @click="clear">清空</n-button>
<n-button quaternary v-if="props.showCodeButton" @click="emits('showCode')">查看代码</n-button>
<n-button quaternary v-if="props.submissionId" @click="copyLink">
复制链接
</n-button>
@@ -35,10 +37,12 @@ interface Props {
css: string
js: string
submissionId?: string
showCodeButton?: boolean
clearable?: boolean
}
const props = defineProps<Props>()
const emits = defineEmits(["afterScore", "showCode"])
const emits = defineEmits(["afterScore", "showCode", "clear"])
const message = useMessage()
const router = useRouter()
@@ -101,6 +105,10 @@ function open() {
}
}
function clear() {
emits("clear")
}
function copyLink() {
copy(`${document.location.origin}/submission/${props.submissionId}`)
message.success("该提交的链接已复制")