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> <template>
<n-flex vertical> <n-flex vertical>
<n-flex align="center"> <n-button size="small" @click="showUpload = true">图片素材</n-button>
<n-text strong>图片素材</n-text>
<n-button size="small" @click="showUpload = true">上传</n-button>
</n-flex>
<n-flex v-if="assets.length" wrap> <n-flex v-if="assets.length" wrap>
<n-card <n-card
v-for="asset in assets" v-for="asset in assets"

View File

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