fix(图片背景组件): 新增是否为oss图片的条件
This commit is contained in:
parent
1bd2796106
commit
550db926f5
@ -82,7 +82,10 @@ const shouldShowImage = computed(() => {
|
|||||||
|
|
||||||
// 判断是否为OSS图片
|
// 判断是否为OSS图片
|
||||||
const isOSSImage = computed(() => {
|
const isOSSImage = computed(() => {
|
||||||
return props.imgUrl.startsWith('https://tkm-likei.oss-ap-southeast-1.aliyuncs.com/h5')
|
return (
|
||||||
|
props.imgUrl.startsWith('/oss/h5/') ||
|
||||||
|
props.imgUrl.startsWith('https://tkm-likei.oss-ap-southeast-1.aliyuncs.com/h5')
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
// 创建交叉观察器
|
// 创建交叉观察器
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user