mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
14 lines
359 B
TypeScript
14 lines
359 B
TypeScript
import { useBreakpoints, breakpointsTailwind } from '@vueuse/core';
|
|
|
|
/** 项目名称 */
|
|
export function useAppTitle() {
|
|
return import.meta.env.VITE_APP_TITLE as string;
|
|
}
|
|
|
|
/** 是否是移动端 */
|
|
export function useIsMobile() {
|
|
const breakpoints = useBreakpoints(breakpointsTailwind);
|
|
const isMobile = breakpoints.smaller('lg');
|
|
return isMobile;
|
|
}
|