Skip to content

Commit

Permalink
fix:Modify style panel background image review
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanlid committed Jan 9, 2025
1 parent 1667ed5 commit d92202c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const selectFixed = (value) => {
onMounted(() => {
const { styleObj } = props.style
const backgroundImageStr = styleObj[BACKGROUND_PROPERTY.BackgroundImage]
state.imgUrl = backgroundImageStr.substring(4, backgroundImageStr.length - 1)
state.imgUrl = backgroundImageStr ? backgroundImageStr.substring(4, backgroundImageStr.length - 1) : ''
state.fixedSelected = styleObj[BACKGROUND_PROPERTY.BackgroundAttachment]
state.repeat = styleObj[BACKGROUND_PROPERTY.BackgroundRepeat]
const sizeKeyword = ['cover', 'contain']
Expand Down

0 comments on commit d92202c

Please sign in to comment.