Commit cda6d96 1 parent e429da4 commit cda6d96 Copy full SHA for cda6d96
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -394,5 +394,9 @@ export default {
394
394
} else {
395
395
this . $message . error ( 'no work id!' )
396
396
}
397
+
398
+ window . getEditorApp . $on ( 'setEditingElement' , ( { name } ) => {
399
+ this . setActiveTab ( name === 'lbp-background' ? 'background' : '属性' )
400
+ } )
397
401
}
398
402
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const actions = {
9
9
const vm = ( payload && payload . name ) ? getEditorConfigForEditingElement ( payload . name ) : null
10
10
commit ( 'setEditingElementEditorConfig' , vm )
11
11
12
- window . getEditorApp . $emit ( 'setEditingElement' )
12
+ payload && window . getEditorApp . $emit ( 'setEditingElement' , payload )
13
13
} ,
14
14
setElementPosition ( { commit } , payload ) {
15
15
commit ( 'setElementCommonStyle' , payload )
You can’t perform that action at this time.
0 commit comments