Compare commits
2 Commits
596ceec880
...
05ecf6bebf
| Author | SHA1 | Date | |
|---|---|---|---|
| 05ecf6bebf | |||
| 54d9861bd8 |
@@ -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"
|
||||||
|
|||||||
@@ -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("自动提交失败,请稍后重试")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user