Fix/fast change directory (#43)
* fix:fast changing directory issue * fix baseURL is not includedpull/739/head
							parent
							
								
									218e638f88
								
							
						
					
					
						commit
						7e1d745435
					
				| 
						 | 
				
			
			@ -144,6 +144,7 @@ export default {
 | 
			
		|||
 | 
			
		||||
      api.fetch(url)
 | 
			
		||||
        .then((req) => {
 | 
			
		||||
          if (this.$store.state.baseURL + req.url !== window.location.pathname) return
 | 
			
		||||
          if (!url.endsWith('/') && req.url.endsWith('/')) {
 | 
			
		||||
            window.history.replaceState(window.history.state, document.title, window.location.pathname + '/')
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue