mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-09 20:57:17 +08:00
revert: 移除部分异步组件加载
This commit is contained in:
@@ -12,7 +12,6 @@ import { useChart } from '@/hooks'
|
||||
import { type DashboardChartCommonResp, getAnalysisTimeslot as getData } from '@/apis/common'
|
||||
import handleIcon from '@/assets/icons/slider.svg'
|
||||
|
||||
const Chart = defineAsyncComponent(() => import('@/components/Chart/index.vue'))
|
||||
// 提示框
|
||||
const tooltipItemsHtmlString = (items) => {
|
||||
return items
|
||||
|
@@ -13,7 +13,6 @@ import type { EChartsOption } from 'echarts'
|
||||
import { useChart } from '@/hooks'
|
||||
import { type DashboardChartCommonResp, getAnalysisBrowser as getData } from '@/apis/common'
|
||||
|
||||
const Chart = defineAsyncComponent(() => import('@/components/Chart/index.vue'))
|
||||
const xAxis = ref<string[]>([])
|
||||
const chartData = ref([])
|
||||
const { chartOption } = useChart((isDark: EChartsOption) => {
|
||||
|
@@ -42,7 +42,6 @@ import { computed } from 'vue'
|
||||
import { useChart } from '@/hooks'
|
||||
import { useAppStore } from '@/stores'
|
||||
|
||||
const Chart = defineAsyncComponent(() => import('@/components/Chart/index.vue'))
|
||||
const appStore = useAppStore()
|
||||
const isDark = computed(() => appStore.theme === 'dark')
|
||||
|
||||
|
@@ -42,7 +42,6 @@ import { computed } from 'vue'
|
||||
import { useChart } from '@/hooks'
|
||||
import { useAppStore } from '@/stores'
|
||||
|
||||
const Chart = defineAsyncComponent(() => import('@/components/Chart/index.vue'))
|
||||
const appStore = useAppStore()
|
||||
const isDark = computed(() => appStore.theme === 'dark')
|
||||
|
||||
|
@@ -43,7 +43,6 @@ import { useChart } from '@/hooks'
|
||||
import { useAppStore } from '@/stores'
|
||||
import { type DashboardChartCommonResp, getDashboardOverviewIp as getData } from '@/apis'
|
||||
|
||||
const Chart = defineAsyncComponent(() => import('@/components/Chart/index.vue'))
|
||||
const appStore = useAppStore()
|
||||
const isDark = computed(() => appStore.theme === 'dark')
|
||||
|
||||
|
@@ -45,7 +45,6 @@ import { type DashboardChartCommonResp, getDashboardOverviewPv as getData } from
|
||||
|
||||
const appStore = useAppStore()
|
||||
const isDark = computed(() => appStore.theme === 'dark')
|
||||
const Chart = defineAsyncComponent(() => import('@/components/Chart/index.vue'))
|
||||
const count = ref(0)
|
||||
const today = ref(0)
|
||||
const growth = ref(0)
|
||||
|
@@ -30,8 +30,6 @@ import type { EChartsOption } from 'echarts'
|
||||
import { getAnalysisGeo as getData } from '@/apis/common/dashboard'
|
||||
import { useChart } from '@/hooks'
|
||||
|
||||
const Chart = defineAsyncComponent(() => import('@/components/Chart/index.vue'))
|
||||
|
||||
const chartRef = useTemplateRef('chartRef')
|
||||
const chartData = ref([])
|
||||
const totalValue = ref(0)
|
||||
|
@@ -13,8 +13,6 @@ import type { EChartsOption } from 'echarts'
|
||||
import { useChart } from '@/hooks'
|
||||
import { type DashboardChartCommonResp, getAnalysisModule as getData } from '@/apis/common'
|
||||
|
||||
const Chart = defineAsyncComponent(() => import('@/components/Chart/index.vue'))
|
||||
|
||||
const yAxis = ref<string[]>([])
|
||||
const chartData = ref([])
|
||||
const { chartOption } = useChart((isDark: EChartsOption) => {
|
||||
|
@@ -13,7 +13,6 @@ import type { EChartsOption } from 'echarts'
|
||||
import { useChart } from '@/hooks'
|
||||
import { type DashboardChartCommonResp, getAnalysisOs as getData } from '@/apis/common'
|
||||
|
||||
const Chart = defineAsyncComponent(() => import('@/components/Chart/index.vue'))
|
||||
const xAxis = ref<string[]>([])
|
||||
const chartData = ref([])
|
||||
const { chartOption } = useChart((isDark: EChartsOption) => {
|
||||
|
@@ -35,7 +35,7 @@ import Geo from './components/Geo.vue'
|
||||
import Os from './components/Os.vue'
|
||||
import Browser from './components/Browser.vue'
|
||||
import Module from './components/Module.vue'
|
||||
import AccessTimeslot from '@/views/dashboard/analysis/components/AccessTimeslot.vue'
|
||||
import AccessTimeslot from './components/AccessTimeslot.vue'
|
||||
|
||||
defineOptions({ name: 'Analysis' })
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user