| 
					
					
					
				 | 
				@ -1,5 +1,6 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				<script setup lang="ts"> | 
				 | 
				 | 
				<script setup lang="ts"> | 
			
		
		
	
		
			
				 | 
				 | 
				import { initRouter } from "@/router/utils"; | 
				 | 
				 | 
				import { initRouter } from "@/router/utils"; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				import { storageSession } from "@pureadmin/utils"; | 
			
		
		
	
		
			
				 | 
				 | 
				import { type CSSProperties, ref, computed } from "vue"; | 
				 | 
				 | 
				import { type CSSProperties, ref, computed } from "vue"; | 
			
		
		
	
		
			
				 | 
				 | 
				import { useUserStoreHook } from "@/store/modules/user"; | 
				 | 
				 | 
				import { useUserStoreHook } from "@/store/modules/user"; | 
			
		
		
	
		
			
				 | 
				 | 
				import { usePermissionStoreHook } from "@/store/modules/permission"; | 
				 | 
				 | 
				import { usePermissionStoreHook } from "@/store/modules/permission"; | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -33,7 +34,7 @@ function onChange() { | 
			
		
		
	
		
			
				 | 
				 | 
				    .loginByUsername({ username: username.value, password: "admin123" }) | 
				 | 
				 | 
				    .loginByUsername({ username: username.value, password: "admin123" }) | 
			
		
		
	
		
			
				 | 
				 | 
				    .then(res => { | 
				 | 
				 | 
				    .then(res => { | 
			
		
		
	
		
			
				 | 
				 | 
				      if (res.success) { | 
				 | 
				 | 
				      if (res.success) { | 
			
		
		
	
		
			
				 | 
				 | 
				        sessionStorage.removeItem("async-routes"); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        storageSession().removeItem("async-routes"); | 
			
		
		
	
		
			
				 | 
				 | 
				        usePermissionStoreHook().clearAllCachePage(); | 
				 | 
				 | 
				        usePermissionStoreHook().clearAllCachePage(); | 
			
		
		
	
		
			
				 | 
				 | 
				        initRouter(); | 
				 | 
				 | 
				        initRouter(); | 
			
		
		
	
		
			
				 | 
				 | 
				      } | 
				 | 
				 | 
				      } | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |