This commit is contained in:
2023-04-04 11:46:28 +08:00
parent ae621b7dd2
commit 2066cb441b
18 changed files with 210 additions and 105 deletions

View File

@@ -67,7 +67,12 @@ onMounted(init)
</n-alert>
<n-card embedded>
<n-space justify="end">
<n-button type="primary" @click="handleCopy(submission!.code)">
<n-button
quaternary
class="copyBtn"
type="primary"
@click="handleCopy(submission!.code)"
>
{{ copied ? "已复制" : "复制代码" }}
</n-button>
</n-space>
@@ -90,4 +95,8 @@ onMounted(init)
.code {
font-size: 20px;
}
.copyBtn {
margin-bottom: 16px;
}
</style>