初始版本提交
This commit is contained in:
10
src/hooks/web/useAppInject.ts
Normal file
10
src/hooks/web/useAppInject.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { useAppProviderContext } from '/@/components/Application';
|
||||
import { computed, unref } from 'vue';
|
||||
|
||||
export function useAppInject() {
|
||||
const values = useAppProviderContext();
|
||||
|
||||
return {
|
||||
getIsMobile: computed(() => unref(values.isMobile)),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user