mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-26 21:26:42 +08:00
* feat(projects): Simplify the main branch and keep only the homepage menu (cherry picked from commitdaf58a6f22
) * feat(packages): change the default request retry count to `0` (cherry picked from commit96f4c82aec
)
47 lines
1.3 KiB
Vue
47 lines
1.3 KiB
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import { useAppStore } from '@/store/modules/app';
|
|
import HeaderBanner from './modules/header-banner.vue';
|
|
import CardData from './modules/card-data.vue';
|
|
import LineChart from './modules/line-chart.vue';
|
|
import PieChart from './modules/pie-chart.vue';
|
|
import ProjectNews from './modules/project-news.vue';
|
|
import CreativityBanner from './modules/creativity-banner.vue';
|
|
|
|
const appStore = useAppStore();
|
|
|
|
const gap = computed(() => (appStore.isMobile ? 0 : 16));
|
|
</script>
|
|
|
|
<template>
|
|
<NSpace vertical :size="16">
|
|
<NAlert :title="$t('common.warning')" type="warning" closable>
|
|
{{ $t('page.home.branchDesc') }}
|
|
</NAlert>
|
|
<HeaderBanner />
|
|
<CardData />
|
|
<NGrid :x-gap="gap" :y-gap="16" responsive="screen" item-responsive>
|
|
<NGi span="24 s:24 m:14">
|
|
<NCard :bordered="false" class="card-wrapper">
|
|
<LineChart />
|
|
</NCard>
|
|
</NGi>
|
|
<NGi span="24 s:24 m:10">
|
|
<NCard :bordered="false" class="card-wrapper">
|
|
<PieChart />
|
|
</NCard>
|
|
</NGi>
|
|
</NGrid>
|
|
<NGrid :x-gap="gap" :y-gap="16" responsive="screen" item-responsive>
|
|
<NGi span="24 s:24 m:14">
|
|
<ProjectNews />
|
|
</NGi>
|
|
<NGi span="24 s:24 m:10">
|
|
<CreativityBanner />
|
|
</NGi>
|
|
</NGrid>
|
|
</NSpace>
|
|
</template>
|
|
|
|
<style scoped></style>
|