mirror of
https://github.com/coaidev/coai.git
synced 2025-05-28 09:20:18 +09:00
9 lines
347 B
TypeScript
9 lines
347 B
TypeScript
import {ref} from "vue";
|
|
|
|
export const mobile = ref<boolean>((document.body.clientWidth < document.body.clientHeight) && (document.body.clientWidth < 600));
|
|
export const gpt4 = ref(false);
|
|
|
|
window.addEventListener("resize", () => {
|
|
mobile.value = (document.body.clientWidth < document.body.clientHeight) && (document.body.clientWidth < 600);
|
|
})
|