fix
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-04-13 04:57:40 -06:00
parent 1d01415771
commit b22eb85f3a
3 changed files with 29 additions and 19 deletions

View File

@@ -1,11 +1,10 @@
<template>
<n-flex vertical>
<n-flex align="center">
<n-text strong>素材</n-text>
<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-empty v-if="!assets.length" description="暂无素材" size="small" />
<n-flex v-else wrap>
<n-flex v-if="assets.length" wrap>
<n-card
v-for="asset in assets"
:key="asset.name"
@@ -15,13 +14,13 @@
<template #cover>
<n-image
:src="asset.url"
style="width: 100%; height: 80px; object-fit: cover"
style="width: 100%; height: 100px; object-fit: contain"
/>
</template>
<n-flex align="center" justify="space-between">
<n-text style="font-size: 12px; word-break: break-all">{{
asset.name
}}</n-text>
<n-text style="font-size: 12px; word-break: break-all">
{{ asset.name }}
</n-text>
<n-button
size="tiny"
quaternary