|
|
|
@ -100,7 +100,6 @@ const startDate = `${currentYear}-01-01 00:00:00`; |
|
|
|
const endDate = `${currentYear}-12-31 23:59:59`; |
|
|
|
// 获取接口数据 |
|
|
|
const fetchCashData = async () => { |
|
|
|
getAdminData() |
|
|
|
try { |
|
|
|
const res = await request({ |
|
|
|
url: '/workbench/getTotalRevenue', |
|
|
|
@ -227,9 +226,9 @@ const renderChart = () => { |
|
|
|
chartInstance.setOption(option) |
|
|
|
} |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
// getAdminData() |
|
|
|
fetchCashData() |
|
|
|
onMounted( async() => { |
|
|
|
await getAdminData() |
|
|
|
await fetchCashData() |
|
|
|
}) |
|
|
|
</script> |
|
|
|
|
|
|
|
|