|  | @ -1,6 +1,6 @@ | 
		
	
		
			
				|  |  | <template> |  |  | <template> | 
		
	
		
			
				|  |  |   <transition name="el-fade-in-linear"> |  |  |   <transition name="el-fade-in-linear"> | 
		
	
		
			
				|  |  |     <router-view /> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |     <router-view v-if="isRouterAlive" /> | 
		
	
		
			
				|  |  |   </transition> |  |  |   </transition> | 
		
	
		
			
				|  |  | </template> |  |  | </template> | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
	
		
			
				|  | @ -13,6 +13,11 @@ | 
		
	
		
			
				|  |  | import Cookies from 'js-cookie' |  |  | import Cookies from 'js-cookie' | 
		
	
		
			
				|  |  | import { messages } from '@/i18n' |  |  | import { messages } from '@/i18n' | 
		
	
		
			
				|  |  | export default { |  |  | export default { | 
		
	
		
			
				|  |  |  |  |  |   provide() { | 
		
	
		
			
				|  |  |  |  |  |     return { | 
		
	
		
			
				|  |  |  |  |  |       reload: this.reload | 
		
	
		
			
				|  |  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  |  |   }, | 
		
	
		
			
				|  |  |   data() { |  |  |   data() { | 
		
	
		
			
				|  |  |     return { |  |  |     return { | 
		
	
		
			
				|  |  |       isRouterAlive: true |  |  |       isRouterAlive: true | 
		
	
	
		
			
				|  | @ -25,6 +30,12 @@ export default { | 
		
	
		
			
				|  |  |     this.i18nHandle(this.$i18n.locale) |  |  |     this.i18nHandle(this.$i18n.locale) | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   methods: { |  |  |   methods: { | 
		
	
		
			
				|  |  |  |  |  |     reload() { | 
		
	
		
			
				|  |  |  |  |  |       this.isRouterAlive = false | 
		
	
		
			
				|  |  |  |  |  |       this.$nextTick(function() { | 
		
	
		
			
				|  |  |  |  |  |         this.isRouterAlive = true | 
		
	
		
			
				|  |  |  |  |  |       }) | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |     i18nHandle(val, oldVal) { |  |  |     i18nHandle(val, oldVal) { | 
		
	
		
			
				|  |  |       Cookies.set('language', val) |  |  |       Cookies.set('language', val) | 
		
	
		
			
				|  |  |       document.querySelector('html').setAttribute('lang', val) |  |  |       document.querySelector('html').setAttribute('lang', val) | 
		
	
	
		
			
				|  | 
 |