mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	perf: 优化登录页 (#1168)
This commit is contained in:
		
							parent
							
								
									13e7a13e9d
								
							
						
					
					
						commit
						775d7a2d32
					
				@ -97,7 +97,11 @@ const immediateDebounce: any = debounce(
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
useEventListener(document, "keypress", ({ code }) => {
 | 
			
		||||
  if (code === "Enter" && !disabled.value && !loading.value)
 | 
			
		||||
  if (
 | 
			
		||||
    ["Enter", "NumpadEnter"].includes(code) &&
 | 
			
		||||
    !disabled.value &&
 | 
			
		||||
    !loading.value
 | 
			
		||||
  )
 | 
			
		||||
    immediateDebounce(ruleFormRef.value);
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user