mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-10 15:18:46 +08:00
Optimized image loading
This commit is contained in:
@@ -12,7 +12,11 @@
|
||||
<div class="detail-cover">
|
||||
<el-image
|
||||
class="cover-image"
|
||||
:src="`/tele-images/?url=${encodeURIComponent(currentResource.image as string)}`"
|
||||
:src="
|
||||
userStore.imagesSource === 'proxy'
|
||||
? `/tele-images/?url=${encodeURIComponent(currentResource.image as string)}`
|
||||
: currentResource.image
|
||||
"
|
||||
fit="cover"
|
||||
/>
|
||||
<el-tag
|
||||
@@ -73,7 +77,7 @@
|
||||
class="channel-logo"
|
||||
scroll-container="#pc-resources-content"
|
||||
fit="cover"
|
||||
lazy
|
||||
loading="lazy"
|
||||
/>
|
||||
<span>{{ group.channelInfo.name }}</span>
|
||||
<span class="item-count">({{ group.list.length }})</span>
|
||||
@@ -257,6 +261,7 @@ const handleLoadMore = (channelId: string) => {
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
box-shadow: var(--theme-shadow-sm);
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.item-count {
|
||||
|
||||
@@ -22,7 +22,11 @@
|
||||
"
|
||||
hide-on-click-modal
|
||||
:preview-src-list="[
|
||||
`${location.origin}/tele-images/?url=${encodeURIComponent(row.image as string)}`,
|
||||
`${location.origin}${
|
||||
userStore.imagesSource === 'proxy'
|
||||
? '/tele-images/?url=' + encodeURIComponent(row.image as string)
|
||||
: row.image
|
||||
}`,
|
||||
]"
|
||||
:zoom-rate="1.2"
|
||||
:max-scale="7"
|
||||
|
||||
Reference in New Issue
Block a user