File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
packages/vue-i18n-core/src/mixins Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,11 @@ export function defineMixin(
102
102
mounted ( ) : void {
103
103
nextTick ( ( ) => {
104
104
/* istanbul ignore if */
105
- if ( ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) && ! __NODE_JS__ ) {
105
+ if (
106
+ ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) &&
107
+ ! __NODE_JS__ &&
108
+ this . $el
109
+ ) {
106
110
this . $el . __VUE_I18N__ = this . $i18n . __composer
107
111
const emitter : VueDevToolsEmitter = ( this . __v_emitter =
108
112
createEmitter < VueDevToolsEmitterEvents > ( ) )
@@ -122,7 +126,12 @@ export function defineMixin(
122
126
123
127
nextTick ( ( ) => {
124
128
/* istanbul ignore if */
125
- if ( ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) && ! __NODE_JS__ ) {
129
+ if (
130
+ ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) &&
131
+ ! __NODE_JS__ &&
132
+ this . $el &&
133
+ this . $el . __VUE_I18N__
134
+ ) {
126
135
if ( this . __v_emitter ) {
127
136
this . __v_emitter . off ( '*' , addTimelineEvent )
128
137
delete this . __v_emitter
You can’t perform that action at this time.
0 commit comments