useAppInject.ts 258 B

12345678910
  1. import { useAppProviderContext } from '/@/components/Application';
  2. import { computed, unref } from 'vue';
  3. export function useAppInject() {
  4. const values = useAppProviderContext();
  5. return {
  6. getIsMobile: computed(() => unref(values.isMobile)),
  7. };
  8. }