Commit daef5282 authored by shirlyn.guo's avatar shirlyn.guo 🤡

chore: 添加最近创作的空内容&账号显示完整名称

parent b5ce1409
...@@ -130,7 +130,14 @@ async function handleCreateDigitalHumanVideo(digitalHumanVideoForm: DigitalHuman ...@@ -130,7 +130,14 @@ async function handleCreateDigitalHumanVideo(digitalHumanVideoForm: DigitalHuman
" "
/> />
<div class="ml-[10px] flex-1 truncate text-[18px]">{{ userInfo.nickName || '-' }}</div> <div class="ml-[10px] flex-1 truncate text-[18px]">
<n-popover trigger="hover">
<template #trigger>
{{ userInfo.nickName || '-' }}
</template>
<span>{{ userInfo.nickName || '-' }}</span>
</n-popover>
</div>
</div> </div>
<div class="flex items-center"> <div class="flex items-center">
......
...@@ -50,7 +50,6 @@ function getRecentCreationList() { ...@@ -50,7 +50,6 @@ function getRecentCreationList() {
width: item.width, width: item.width,
height: item.height, height: item.height,
})) }))
fetchCreationTemplateInfoListLoading.value = false fetchCreationTemplateInfoListLoading.value = false
}) })
} }
...@@ -95,6 +94,7 @@ function handleToCreation(draftId: number) { ...@@ -95,6 +94,7 @@ function handleToCreation(draftId: number) {
<n-scrollbar :x-scrollable="true"> <n-scrollbar :x-scrollable="true">
<div class="min-h-[194px]"> <div class="min-h-[194px]">
<template v-if="!fetchCreationTemplateInfoListLoading"> <template v-if="!fetchCreationTemplateInfoListLoading">
<div>
<div <div
v-for="templateInfoItem in creationTemplateInfoList" v-for="templateInfoItem in creationTemplateInfoList"
:key="templateInfoItem.id" :key="templateInfoItem.id"
...@@ -133,6 +133,10 @@ function handleToCreation(draftId: number) { ...@@ -133,6 +133,10 @@ function handleToCreation(draftId: number) {
{{ templateInfoItem.draftName }} {{ formatDateTime(templateInfoItem.modifiedTime) }} {{ templateInfoItem.draftName }} {{ formatDateTime(templateInfoItem.modifiedTime) }}
</n-ellipsis> </n-ellipsis>
</div> </div>
</div>
<div v-show="!creationTemplateInfoList.length" class="pt-[40px]">
<n-empty description="暫無創作數據"> </n-empty>
</div>
</template> </template>
<template v-else> <template v-else>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment