Skip to content

Commit cda6d96

Browse files
committed
fix: #133
1 parent e429da4 commit cda6d96

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

front-end/h5/src/components/core/editor/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -394,5 +394,9 @@ export default {
394394
} else {
395395
this.$message.error('no work id!')
396396
}
397+
398+
window.getEditorApp.$on('setEditingElement', ({ name }) => {
399+
this.setActiveTab(name === 'lbp-background' ? 'background' : '属性')
400+
})
397401
}
398402
}

front-end/h5/src/store/modules/element.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const actions = {
99
const vm = (payload && payload.name) ? getEditorConfigForEditingElement(payload.name) : null
1010
commit('setEditingElementEditorConfig', vm)
1111

12-
window.getEditorApp.$emit('setEditingElement')
12+
payload && window.getEditorApp.$emit('setEditingElement', payload)
1313
},
1414
setElementPosition ({ commit }, payload) {
1515
commit('setElementCommonStyle', payload)

0 commit comments

Comments
 (0)