This commit is contained in:
plightfield 2024-11-22 19:20:18 +08:00
parent 9415fb7c14
commit 6e89ee119e
1 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import useUserStore from '@/user/useUserStore'
import useRouterStore from '@/useRouterStore'
import useBackgroundStore from './useBackgroundStore'
import CustomWallpaper from './CustomWallpaper'
import { videoArr } from '@/config'
addIcons(BiChevronLeft, BiChevronDown)
@ -169,7 +170,12 @@ export default defineComponent(() => {
class="h-[156px] relative cursor-pointer group w-full flex-grow-0 rounded-xl overflow-hidden"
>
<img
src={item.url + '?x-oss-process=image/resize,w_300'}
src={
item.url +
(videoArr.includes(item.url.split('.').pop() || '')
? '?x-oss-process=video/snapshot,t_0,f_jpg,w_400,h_225,m_fast'
: '?x-oss-process=image/resize,w_300')
}
class=" duration-150 absolute w-full h-full object-cover flex-grow-0 rounded-xl group-hover:scale-[1.2]"
/>
<div