图优化

This commit is contained in:
2026-08-11 11:28:17 +08:00 Unverified
parent ebc759a53e
commit 9708f81764
2 changed files with 28 additions and 2 deletions
+14 -1
View File
@@ -1,10 +1,23 @@
<script setup lang="ts">
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'
import { ArrowLeft, Refresh } from '@element-plus/icons-vue'
import * as echarts from 'echarts'
import * as echarts from 'echarts/core'
import { BarChart, LineChart } from 'echarts/charts'
import { AriaComponent, GridComponent, LegendComponent, TooltipComponent } from 'echarts/components'
import { CanvasRenderer } from 'echarts/renderers'
import { useRoute, useRouter } from 'vue-router'
import http, { apiErrorMessage } from '../api/http'
echarts.use([
AriaComponent,
BarChart,
CanvasRenderer,
GridComponent,
LegendComponent,
LineChart,
TooltipComponent,
])
const route = useRoute()
const router = useRouter()
const loading = ref(false)