Skip to content

Commit

Permalink
fix: #133
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Jan 14, 2020
1 parent e429da4 commit cda6d96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions front-end/h5/src/components/core/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,5 +394,9 @@ export default {
} else {
this.$message.error('no work id!')
}

window.getEditorApp.$on('setEditingElement', ({ name }) => {
this.setActiveTab(name === 'lbp-background' ? 'background' : '属性')
})
}
}
2 changes: 1 addition & 1 deletion front-end/h5/src/store/modules/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const actions = {
const vm = (payload && payload.name) ? getEditorConfigForEditingElement(payload.name) : null
commit('setEditingElementEditorConfig', vm)

window.getEditorApp.$emit('setEditingElement')
payload && window.getEditorApp.$emit('setEditingElement', payload)
},
setElementPosition ({ commit }, payload) {
commit('setElementCommonStyle', payload)
Expand Down

0 comments on commit cda6d96

Please sign in to comment.