vue-vben-admin/src/hooks/web/useAppInject.ts

11 lines
258 B
TypeScript
Raw Normal View History

2020-12-15 00:13:23 +08:00
import { useAppProviderContext } from '/@/components/Application';
import { computed, unref } from 'vue';
export function useAppInject() {
const values = useAppProviderContext();
return {
getIsMobile: computed(() => unref(values.isMobile)),
};
}