Browse Source

工作台渲染问题

zhangyong/milestone-20250913-现金管理
ZhangYong 1 month ago
parent
commit
883821a9c0
  1. 7
      src/components/workspace/CashManagement.vue

7
src/components/workspace/CashManagement.vue

@ -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>

Loading…
Cancel
Save