fix: 完善扫一扫功能

This commit is contained in:
卢越
2025-07-28 16:49:01 +08:00
parent 030f7525f8
commit e64a9d2e65
2 changed files with 99 additions and 23 deletions
+5 -5
View File
@@ -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`,
};
}
}
});