mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-10-31 22:57:15 +08:00 
			
		
		
		
	chore: 优化部分代码(同步 GiDemo 更新)
This commit is contained in:
		| @@ -17,7 +17,7 @@ export function useBreakpoint() { | ||||
|  | ||||
|   const arr = breakpoints.current() as ComputedRef<Breakpoint[]> | ||||
|   const breakpoint = computed(() => { | ||||
|     return arr.value[arr.value.length - 1] || 'xs' | ||||
|     return arr.value.length ? arr.value[arr.value.length - 1] : 'xs' | ||||
|   }) | ||||
|  | ||||
|   return { breakpoint } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user