change
This commit is contained in:
parent
9415fb7c14
commit
6e89ee119e
|
@ -10,6 +10,7 @@ import useUserStore from '@/user/useUserStore'
|
||||||
import useRouterStore from '@/useRouterStore'
|
import useRouterStore from '@/useRouterStore'
|
||||||
import useBackgroundStore from './useBackgroundStore'
|
import useBackgroundStore from './useBackgroundStore'
|
||||||
import CustomWallpaper from './CustomWallpaper'
|
import CustomWallpaper from './CustomWallpaper'
|
||||||
|
import { videoArr } from '@/config'
|
||||||
|
|
||||||
addIcons(BiChevronLeft, BiChevronDown)
|
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"
|
class="h-[156px] relative cursor-pointer group w-full flex-grow-0 rounded-xl overflow-hidden"
|
||||||
>
|
>
|
||||||
<img
|
<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]"
|
class=" duration-150 absolute w-full h-full object-cover flex-grow-0 rounded-xl group-hover:scale-[1.2]"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in New Issue