mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-08-02 12:08:06 +00:00
feat: 响应式支持移动端 (#49)
* feat: 响应式兼容 h5 * feat: 补充空状态 * feat: thinking * chore: @vueuse/core 导致的类型检查错误 * chore: version 2.4.0
This commit is contained in:
8
src/hooks/useBasicLayout.ts
Normal file
8
src/hooks/useBasicLayout.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { breakpointsTailwind, useBreakpoints } from '@vueuse/core'
|
||||
|
||||
export function useBasicLayout() {
|
||||
const breakpoints = useBreakpoints(breakpointsTailwind)
|
||||
const isMobile = breakpoints.smaller('sm')
|
||||
|
||||
return { isMobile }
|
||||
}
|
Reference in New Issue
Block a user