项目初始化
This commit is contained in:
10
web-vue/packages/core/hooks/web/useAppInject.ts
Normal file
10
web-vue/packages/core/hooks/web/useAppInject.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { useAppProviderContext } from '@jeesite/core/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