useProjectSetting.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { computed } from 'vue';
  2. import { useProjectSettingStore } from '@/store/modules/projectSetting';
  3. export function useProjectSetting() {
  4. const projectStore = useProjectSettingStore();
  5. const getNavMode = computed(() => projectStore.navMode);
  6. const getNavTheme = computed(() => projectStore.navTheme);
  7. const getIsMobile = computed(() => projectStore.isMobile);
  8. const getHeaderSetting = computed(() => projectStore.headerSetting);
  9. const getMultiTabsSetting = computed(() => projectStore.multiTabsSetting);
  10. const getMenuSetting = computed(() => projectStore.menuSetting);
  11. const getCrumbsSetting = computed(() => projectStore.crumbsSetting);
  12. const getPermissionMode = computed(() => projectStore.permissionMode);
  13. const getShowFooter = computed(() => projectStore.showFooter);
  14. const getIsPageAnimate = computed(() => projectStore.isPageAnimate);
  15. const getPageAnimateType = computed(() => projectStore.pageAnimateType);
  16. return {
  17. getNavMode,
  18. getNavTheme,
  19. getIsMobile,
  20. getHeaderSetting,
  21. getMultiTabsSetting,
  22. getMenuSetting,
  23. getCrumbsSetting,
  24. getPermissionMode,
  25. getShowFooter,
  26. getIsPageAnimate,
  27. getPageAnimateType,
  28. };
  29. }