💄 Optimization

This commit is contained in:
LittleSheep 2024-08-11 22:26:29 +08:00
parent b5f5d2d22f
commit 3629cf7c63
5 changed files with 18 additions and 2 deletions

View File

@ -29,7 +29,7 @@
<attachment-carousel :attachments="post.body?.attachments" /> <attachment-carousel :attachments="post.body?.attachments" />
</v-card> </v-card>
<div class="mb-3 text-sm flex flex-col"> <div class="text-sm flex flex-col">
<span class="flex flex-row gap-1"> <span class="flex flex-row gap-1">
<span> <span>
{{ post.metric.reply_count }} {{ post.metric.reply_count > 1 ? "replies" : "reply" }}, {{ post.metric.reply_count }} {{ post.metric.reply_count > 1 ? "replies" : "reply" }},
@ -44,7 +44,7 @@
</span> </span>
</div> </div>
<div v-if="post.tags?.length > 0" class="text-xs text-grey flex flex-row gap-1"> <div v-if="post.tags?.length > 0" class="text-xs text-grey flex flex-row gap-1 mt-3">
<span v-for="tag in post.tags">#{{ tag.alias }}</span> <span v-for="tag in post.tags">#{{ tag.alias }}</span>
</div> </div>
</v-card-text> </v-card-text>

View File

@ -14,6 +14,10 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
useHead({
title: 'Activity',
})
const config = useRuntimeConfig() const config = useRuntimeConfig()
const items = ref<any[]>([]) const items = ref<any[]>([])

View File

@ -44,6 +44,10 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
useHead({
title: 'Gallery',
})
const config = useRuntimeConfig() const config = useRuntimeConfig()
const items = ref<any[]>([]) const items = ref<any[]>([])

View File

@ -28,6 +28,10 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
useHead({
title: 'Products',
})
const { data: products } = await useAsyncData("products", () => queryContent("/products").find()) const { data: products } = await useAsyncData("products", () => queryContent("/products").find())
</script> </script>

View File

@ -31,6 +31,10 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
definePageMeta({
alias: ["/@:name(.*)*"]
})
const route = useRoute() const route = useRoute()
const config = useRuntimeConfig() const config = useRuntimeConfig()