fix: 完善扫一扫功能
This commit is contained in:
@@ -20,14 +20,14 @@
|
||||
// 组件样式
|
||||
const elBackground = computed(() => {
|
||||
if (props.styles) {
|
||||
if (props.styles.bgType === 'color')
|
||||
if (props.styles.bgType === 'color') {
|
||||
return { background: props.styles.bgColor };
|
||||
if (props.styles.bgType === 'img')
|
||||
}
|
||||
if (props.styles.bgType === 'img') {
|
||||
return {
|
||||
background: `url(${sheep.$url.cdn(
|
||||
props.styles.bgImg,
|
||||
)}) no-repeat top center / 100% auto`,
|
||||
background: `url(${sheep.$url.cdn(props.styles.bgImg)}) no-repeat top center / 100% auto`,
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user