File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
packages/vue-i18n-core/src/mixins Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,17 @@ export function defineMixin(
100100 } ,
101101
102102 mounted ( ) : void {
103- /* istanbul ignore if */
104- if ( ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) && ! __NODE_JS__ ) {
105- this . $el . __VUE_I18N__ = this . $i18n . __composer
106- const emitter : VueDevToolsEmitter = ( this . __v_emitter =
107- createEmitter < VueDevToolsEmitterEvents > ( ) )
108- const _vueI18n = this . $i18n as unknown as VueI18nInternal
109- _vueI18n . __enableEmitter && _vueI18n . __enableEmitter ( emitter )
110- emitter . on ( '*' , addTimelineEvent )
111- }
103+ nextTick ( ( ) => {
104+ /* istanbul ignore if */
105+ if ( ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) && ! __NODE_JS__ ) {
106+ this . $el . __VUE_I18N__ = this . $i18n . __composer
107+ const emitter : VueDevToolsEmitter = ( this . __v_emitter =
108+ createEmitter < VueDevToolsEmitterEvents > ( ) )
109+ const _vueI18n = this . $i18n as unknown as VueI18nInternal
110+ _vueI18n . __enableEmitter && _vueI18n . __enableEmitter ( emitter )
111+ emitter . on ( '*' , addTimelineEvent )
112+ }
113+ } )
112114 } ,
113115
114116 unmounted ( ) : void {
You can’t perform that action at this time.
0 commit comments