提交 b0579751 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 实验可以重复提交

上级 4e4b5b62
......@@ -141,6 +141,7 @@ export interface ExperimentInfo {
is_commit_report: boolean
is_commit: boolean
exam_status: number
can_repeat_commit: 0 | 1
}
interface IdName {
......
......@@ -123,7 +123,12 @@ function handleBackHome() {
const reportDialogVisible = $ref(false)
// 是否已经提交
const submitted = $computed(() => {
return detail ? detail.status !== 0 : false
// status: 0 缓存 1 已提交 2 已评分
// 已提交
if (detail?.status === 1) return true
// 已评分并且可以重复提交
if (detail?.status === 2 && experimentInfo?.can_repeat_commit !== 1) return true
return false
})
// 是否禁用
const disabled = $computed(() => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论