From c257ca094891987a077063ed1a892d2faa0f4319 Mon Sep 17 00:00:00 2001 From: zhouyuf <842923744@qq.com> Date: Sat, 28 May 2022 17:24:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Ddashboard=E9=A1=B5mock?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CountTo/CountTo.vue | 2 +- src/views/dashboard/console/console.vue | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/CountTo/CountTo.vue b/src/components/CountTo/CountTo.vue index 9576a82..7b4d015 100644 --- a/src/components/CountTo/CountTo.vue +++ b/src/components/CountTo/CountTo.vue @@ -46,7 +46,7 @@ const source = ref(props.startVal); const disabled = ref(false); let outputValue = useTransition(source); - + const value = computed(() => formatNumber(unref(outputValue))); watchEffect(() => { diff --git a/src/views/dashboard/console/console.vue b/src/views/dashboard/console/console.vue index a4678c9..e476e65 100644 --- a/src/views/dashboard/console/console.vue +++ b/src/views/dashboard/console/console.vue @@ -324,11 +324,11 @@ ]; onMounted(async () => { - const { visits, saleroom, orderLarge, volume } = await getConsoleInfo(); - visits.value = visits; - saleroom.value = saleroom; - orderLarge.value = orderLarge; - volume.value = volume; + const data = await getConsoleInfo(); + visits.value = data.visits; + saleroom.value = data.saleroom; + orderLarge.value = data.orderLarge; + volume.value = data.volume; loading.value = false; });