【优化】处理 image card 抽屉不显示问题

This commit is contained in:
cherishsince 2024-06-18 16:58:23 +08:00
parent 19c752e81d
commit dc31aeb24e
2 changed files with 3 additions and 10 deletions

View File

@ -47,20 +47,13 @@
{{imageDetail.picUrl}}
</div>
</div>
<!-- 生成地址 TODO @fan这个字段我删除了要不干掉 -->
<div class="item">
<div class="tip">生成地址</div>
<div class="body">
{{imageDetail.originalPicUrl}}
</div>
</div>
<!-- 风格 -->
<div class="item">
<div class="item" v-if="imageDetail?.options?.style">
<div class="tip">风格</div>
<div class="body">
<!-- TODO @fan貌似需要把 imageStyleList 搞到 api/image/index.ts 枚举起来 -->
<!-- TODO @fan这里的展示可能需要按照平台做区分 -->
{{imageDetail.options.style}}
{{imageDetail?.options?.style}}
</div>
</div>
</el-drawer>

View File

@ -70,6 +70,7 @@ const getImageList = async () => {
const handlerImageBtnClick = async (type, imageDetail: ImageDetailVO) => {
// image detail id
showImageDetailId.value = imageDetail.id
console.log('type', imageDetail.id)
// btn
if (type === 'more') {
await handlerDrawerOpen()
@ -119,7 +120,6 @@ const downloadImage = async (imageUrl) => {
const handleTabsScroll = async () => {
if (imageTaskRef.value) {
const { scrollTop, scrollHeight, clientHeight } = imageTaskRef.value;
console.log('scrollTop', scrollTop, clientHeight, scrollHeight)
if (scrollTop + clientHeight >= scrollHeight - 20 && !imageTaskLoading.value) {
console.log('分页')
pageNo.value = pageNo.value + 1