feat:修改面授课下载

This commit is contained in:
lixg
2023-03-04 11:08:59 +08:00
parent 966f6b7c08
commit c109388bb0
6 changed files with 29 additions and 50 deletions

View File

@@ -14,8 +14,8 @@
:key="i"
class="cha"
:style="{
top: `${imgAttr.positions[i]?.top - (current === i ? 1 : 0)}px`,
left: `${imgAttr.positions[i]?.left - (current === i ? 11 : 0)}px`,
top: `${imgAttr?.positions[i]?.top - (current === i ? 1 : 0)}px`,
left: `${imgAttr?.positions[i]?.left - (current === i ? 11 : 0)}px`,
}"
>
<div
@@ -152,10 +152,14 @@ const imageAttrs = {
},
};
const imgAttr = computed(
() =>
imageAttrs[Object.keys(imageAttrs).find((e) => props.img.includes(e))] || {}
);
const imgAttr = computed(() => {
if (props.img) {
return (
imageAttrs[Object.keys(imageAttrs).find((e) => props.img.includes(e))] ||
{}
);
}
});
const imgAttrindex = computed(
() => {
// console.log("props.img.includes1", props.img);