dbsd_kczx/src/hooks/web/useAppInject.ts

11 lines
258 B
TypeScript
Raw Normal View History

2021-10-20 14:32:09 +08:00
import { useAppProviderContext } from '/@/components/Application';
import { computed, unref } from 'vue';
export function useAppInject() {
const values = useAppProviderContext();
return {
getIsMobile: computed(() => unref(values.isMobile)),
};
}