added useRatio
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { useWindowSize } from "@vueuse/core";
|
||||
|
||||
export const useRatio = () => {
|
||||
const isMobile = computed(() => {
|
||||
const { width: windowWidth } = useWindowSize();
|
||||
return windowWidth.value < 1024;
|
||||
});
|
||||
|
||||
return {
|
||||
isMobile,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user