Compare commits

..

2 Commits

Author SHA1 Message Date
05ecf6bebf update
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled
2026-06-11 22:35:14 +08:00
54d9861bd8 update 2026-06-11 22:21:59 +08:00
2 changed files with 18 additions and 15 deletions

View File

@@ -1,9 +1,6 @@
<template>
<n-flex vertical>
<n-flex align="center">
<n-text strong>图片素材</n-text>
<n-button size="small" @click="showUpload = true">上传</n-button>
</n-flex>
<n-button size="small" @click="showUpload = true">图片素材</n-button>
<n-flex v-if="assets.length" wrap>
<n-card
v-for="asset in assets"

View File

@@ -9,9 +9,6 @@
</template>
<template #suffix>
<n-flex style="margin: 0 8px">
<n-button v-if="assets.length" text @click="showAssets = true">
<Icon :width="16" icon="lucide:image" />
</n-button>
<n-button
v-if="roleAdmin || roleSuper"
text
@@ -40,13 +37,22 @@
<n-text depth="3">
出题人{{ challengeAuthor || "未设置" }}
</n-text>
<n-button
v-if="exampleCode"
size="small"
@click="previewExample"
>
看示例
</n-button>
<n-flex align="center" size="small">
<n-button
v-if="assets.length"
size="small"
@click="showAssets = true"
>
看素材
</n-button>
<n-button
v-if="exampleCode"
size="small"
@click="previewExample"
>
看示例
</n-button>
</n-flex>
</n-flex>
</div>
<div
@@ -241,7 +247,7 @@ async function loadChallenge() {
historyRefreshKey.value++
message.success("已自动提交本次对话生成的代码")
} catch {
// 静默失败,不打扰用户
message.error("自动提交失败,请稍后重试")
}
})
}