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